Bookkeeping before printing.