Switch to use protobufs.