Trying to make dfs work.