Changed DFS recurstion principle.