I re-ran it through multiple levels and I see what you mean now. Ignoring the second loop only captures the child, but not the grandchildren and so on after that.
Thank you for doing this. I've been looking for a simple solution to this very problem for some time now. What I'm currently...