Added optional S3 config parameter.