Added a handler for incoming requests.