Added a way to know when a node was done expanding.