ADD: Continuing with algorithm, there is a problem with undoing the alterations after a node has been created