Changed gui parameter to take a numeric value which is the
number of hours to write data to disk