Added RTC and trial timer