Added logging of response.