BFS2 added for testing