Preparation for writing pathfinding.