Added a basic connection method.