Added some utility func