implemented cron script