Ok, seems to make sense - took me a while to realize that most of the logic was just validating that the node_cache and node data matched completely. Worth some comments, perhaps?