Add annotations for the preferences.