Adapted dummyNode insertion condition to correspond to the new column numbers.