Added code for AWS S3 integration