Updated preferences to be a singleton.
Preferences save between app launches