Pathfitting