Fix bug where higher iteration counts would stream across terminal