Made it a little longer with the bash codes that autogenerates code
I have realized I need a better automation script.
Lua seems fit.