etki: Just a stupid rewrite of code-generating script