Code generation works, fixes #24