Add chunk decoding (hard-coded for now, should be header-dependent)