Enhanced to log all requests.