Implemented permutations.