Couple tweaks. Admin page mostly works now. Splitted the handler in 2 functions, so we can also call the check functions outside cron. (via admin page)