Fixed many bugs in scheduling, of course.