Fixes to printing.