Execution of Generate code