Add localSotorage support