Pathfinding improvements.