Wrote dfs