Queue and Scheduler, (not finished yet)