Added data persistence across sessions using localStorage.