Implement modules generation.