Add S3 support to the loader