Using modules for generation