Print non-completed outputs properly.
Fixed a rebase error.