Added S3 logging