Added S3 logging and Command line arguements