Added code generation utility