Packing implementation