A collection of general-purpose utility functions.