Moved request processing in a new class