Added check_rule