Added code for the RTC