Added Resolver class. Logic processing requests changed.