Introduced partitioning of params using arbitrary shapes