Remove old permutation function