Logging added to API calls.