Modified variable definitions for global access