Made some things protobuf compatible