Added time to write to file