Functioning version
Added cronjob bash script