Added bfs with func parameter w/o content yet