How to save a constant updating value