Add permutation stuff for SQC.