Added RTC support
Added magdata