Updated Serialize and Unserialize functions.