General purpose Utilities and scratchpad