Implemented Preference setting