DFS alg added-partially....