BFS working with linux.