Added some helper methods to document