Added protobuf serialization