Better module generation
Add log when creating module