This is creating duplicate lines in the headers (each time you run it, it appends another copy of `get_new_header`).