Added feature to read lines with newline characters.