Fixed interface to BFS