Avoid using system preferences.