Adds variable SELF_PRODUCT in rule