Added some utility functions to this class