Code cleanup in doPrint()