De-globalized threshold variable