Run the autoconnect loop