Moved general utility functions to new object GeneralUtils.