Remove the debugging messages and add a debugging variable.