Added exponential backoff for failed and rate limited API requests.