Moved the S3 download functionality to dedicated file
Cleaning