Generate code extended