Add Id for rule.