Began working on a better IsConnected method.