Added data preservation on reset, now the data is saved in flash and restored when a rest occurs.