Function that performs permutation (_af_rmuln) was rewritten