Changed the scope back to 24 hours.
Added some output for the cronjob and debugging purposes. Might need some more.
Added some more debugging.
Fixed some stupid small bugs.