Custom dynamic partitioning