Added some utility methods.