AddNodes functionality