Revised bfs to bft since its traversal.