BFS method to get replies