Add variables to BNstop valuelookup function