Added Object serialization and deserialization