First version of coscheduler.