Constrain Recursion to DFS