A collection of useful utility functions.