Improve print log. Complete edit function protobuf.