Added save to flash code (does not compile yet)