Namespaced most global variables and functions to avoid cross-compatibility issues.