Converted qbox lookup to environment-based lookup.