Adding retrying to upload as well