Added header for BFS on device