Using localStorage. Needs to be refactored.