Add ability to write files to S3