Add method recursiveSearch