Eliminate file global variable