Add functions to work with localstorae.
Update.