Implemented local storage (not tested)