Connection rules

Existing connections are reused whenever possible while adhering to certain connection rules. The rules are as follows: