Improved initialization of MyPreferences