Moved args from main to global scope.