Basic implementation of the preference plugin. The UI edition part is missing.