Added IsConnected method