BFS done.