Code modularization: Refactored global variables.