Progress on the BFS algorithm