Making num_blocks_i and num_blocks_j optional.