Saving data from timer