Added some helper methods.