Fixed logging on invalid files
Added the cronjobs