Started implementing discover recursive method. But it crashes.