Avoid generating the same node twice, once as the last entry of the children, once as the root during recursion.