Pull request for DFS functions