Another attempt at removing EOF newline.