Fixed bug with output updates happening after every message