Added connection method.