Add connect judge