Add localstorage support