Added header output to logfile