Serialization of objects and events is working