Added pack and unpack operations