Added minimalPaths