Preferences implementation a bit.