Am I blind?!? There already were functions for halting and restarting the scheduler.