Adding appendNewline