Fixed DFS and finished IDS