General purpose utility code for use in any project