Add/remove rules implemented in the prefs dialog.