Updating the S3 upload script