Fixed a few bugs and did some more testing. Recursive search function is working