Added checking connection control.