Implemented permutation