Refactor check scheduler some more.