Why the extra new line. The file already ends in a newline. Now it ends with two.