Scheduler code refactoring (node state)
New node attribute - priority