Adding code generator