Fix display of output when there's a single line.
Fix bugs in status update.