Refactoring to allow for other processors and loaders