Added hg module to the core.