Need to figure out why DFS works here.