Packing algorithm.