Add a routine to check bridge connection