Add permutation stuff to SOSQC.