Make better use of condition variables to connect to VIs.