Adding connection rule