Added unique and reference rules.