Removed global debug flag