Allow arbitrary number of nodes