Checking connection