Added Q motif match in names of permutations