I couldn't figure out of what or if there was a need for queries beyond this limit. The 'len(tree) < 6' below suggest there is...