Refactored processor, routes and Gemfile