Added S3 upload support.