Rename Setting struct to Rule, fix the tracking code