Added logging of the response.