RTC functionality added