Simplify addNodes() even more by using variable number of arguments.