Add localstorage implementation