Various utilities that don't fit elsewhere.