Add get_connexion() and wait statement to avoid blacklisting