Now processes input by line instead of by character.