Added newline character to file ends.