add a way to track position during the packing.