Working towards better packing routine.