Check for connectivity