Changed the task to add nodes to become more generic, so it can be used for any node change operation