Adding Marshal() and Unmarshal().