Added global debug mode to Module