Add timestep information and variable to outfile