Added global debug flag.