Update scheduler.cc