These are really complicated. Is there a way to automatically generate permutations automatically?