Preparing the module generator