Added BFS and height