Delete debug messages, and change copyrows (but do not work yet).