Remove 'name' argument from register_module.
Add check before adding module.