Flattened path finder.