First draft for scheduler