Made the connection test threaded.