CGE: Reduce the scope of some variables