Replace end-of-routine dictionary with line-by-line append

Still returning a single line.