Added functions for RTC module.