Converted line delimiters and fixed dprecated methods.