Improving RTC handling. Removing unneccessary functions. Cleanup.