Added conditioning variables on external threads