Started implementing PreferenceManager, bugs everywhere.
Forgot something.