Refactoring to allow for unit testing