Changed Globals to Member vars (C# doesn't have globals)