TSAGE: R2R - Reduce the scope of some variables