Added retries for requests.