Add Printer and refractor code.