This is the the initial frontend for the scheduler