Add permutations support.