Moved guid creation to the constructor for use pre-connect.