Changed to A* search.