Added logic to gather time from the RTC.