Make printouts atomic