Added OUTPUT for BFS