Set up preferences.xml