Saving/loading to/from flash memory states.