Complete DFS.