Implemented basic request handling.