Adds a check for end of file newline. #4