Updated DFS