Convert global variables to local to optimize minification.