Added 'connect()' method.