Debugged setting with STREAM 1. Handles standard input line-wise.