Add a response handler