Coalesce prints using lastPrintedIndex