Port of the unpack task