Implement unpack