Added time check for second loop in uploader to prevent 1969 error