Adds logic for enabling and disabling as well as removing rules