-Add a periodic save mechanism to recover from crashes