Now handles multiple/unfinished lines of output