RTC compiles and doesn't crash anymore, but also doesn't run
RTC works correctly

Removes unnecesary code, and moved some things around, now it works
fine.