Added shuffled as a parameter to refresh_country_preferences to provide both functionalities.