Added some support to chunks packing