Refactored API requests.