Change global to define