Added ability to pre-register a module.