Added open connection method