private void loadPreferences() {
		print("Loading user preferences");
		preferences = new Properties();
		
		// Try and load from a file
		preferencesFile = new File(homeDir, "preferences.xml");
		if (preferencesFile.isFile()) {
			try {
				preferences.loadFromXML(new FileInputStream(preferencesFile));
			} catch (InvalidPropertiesFormatException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}