Refactored S3 using AWS library and update with new filer API