It was just personal preference really in case I wanted to assign a longer or shorter value if I found 5 seconds was too long or short, the point is moot however since I have never had an upload fail and can't conclude that sleeping helps. In the sample script from Google they chose to sleep between retries, however I could not find any documentation explicitly stating why. I can remove it.