Beginning of wiring up all the connect handling.