Added email_debug flag to globals