Change to shortest path.