Added infrastracture to use protobuf.