Modified ConnectionMonitor to call _get_tcp once to speed up the program.