Packing the bags in boxes