Connection dependent on.

Manually patch or re-implement code improvements from the INC, and Elise Hendrick, Mathew Fuller, Christian Fuchs, Alidad Mafinezam, Daniel Kulla.