Add primitive option to generate_all_slabs.