Use global variable instead of ENV