Made script executable
Modified to be runnable by cron