Add support for reading lines from standard input.