Added Nodes to P functions