Various utilities that I don't want to keep recreating