Added few utility functions