Added the inverted row functionality to node addition