Added pathfinding capability.