Cleared up the request handling and response handling methods.