use Timer class for expiry and alert timings