Adding request handling to server