Added support for $global module