Added ability to control S3 permissions.