Add support for localstorage