Implemented AckEvent and FailEvent serialization