Added missing global debug variable.