Stop when the set of permutations is complete