Removed Node Logic from DFS.