Added 'connect()' method to make 'with' statements more explicit.