Adding the `unpack` function