Changes to deal with nodes instead of PEs.