Make sure that modules are only instantiated once.