Added a note on the permutation function.