Changed from rows_per_part to num_parts