Added some functionallity to utilize debug tasks. Only to be used when testing the scheduler and never when the real system should run.