Removed global variables use for single modules. Added $core global