Added util class for generic functions