Revert "Revert "Change global variable to local for AGN Safe Zone""

This reverts commit e644233d10a6806d616e14857192680170d5a446.