Scheduler optimizing