Removing spurious printouts