Add XML serialisation/deserialisation for user prefs