add use of real time clock to avoid the use of alarm signals