Implementing persistence of preferences.