Added some utility method