Check before connecting