Use 'carryOn' instead of 'isConnected' in loop