S3 Script: Added Cron Job and Minor Bug Fixes