Initial implementation of RTC