Moved global var from header file to c source