Synchronize serializing/deserializing