Adding persistence to local storage