Added upgrade rules.