Added onModuleAlreadyDefined method.