Utility functions that I find useful