Tries to move BFS code to init, fails