Added threshold for each rule #40