Add rules and link