Added some small utility methods.