Added a sleep between retries.