Added a wait time between uploads to try avoiding the "Connection reset by peer" error