Updated permutation scripts