Expand target nodes on the fly, so the hooks can inject more nodes in the tree.