Added cronjob and date functionality