Added protobuf support