Working code generation