Refactored local storage.