Thank you for reading it and the feedback! It’s very much untested so it almost certainly needs some refinement. My original idea was to do it as a depth crawl but I was concerned about page count.
Totally understand the problem with page count.