Added utlity functions