Moved the addition of type to the newly created S3Config record to the correct spot. Thanks renatosvo. Resolved #7. Resolved #6