Implimented a connect diagnals method.