Added utils file which contains helper functions.