Filled out scheduler_dequeue and fixed scheduler_enqueue but it doesn't work yet