Modified module pattern to return all methods for ease of unit testing