Added option minimumPaths