Connection integrity detection added