Add serialization/deserialization of event container