main: Improvements to make the search work better through more recursion.