Added a nreg module in core.