Implemented SRAM and RTC saving