Added a peekable text reader that allows for reading multiple lines ahead.