Add partitioning and permutation.