Change output file variable to Tg for generation time.