Made SaveToS3 reusable