diff --git a/src/SymbolTable.cc b/src/SymbolTable.cc
index 95ea527e9974e055682bef44ad19c9856789b376..af2a06ff98b6d839da7f4ad36aa7c67cb5daf459 100644
--- a/src/SymbolTable.cc
+++ b/src/SymbolTable.cc
@@ -241,6 +241,8 @@ SymbolTable::writeOutput(ostream &output) const noexcept(false)
             output << "};" << endl;
             if (it->first == "status")
               output << "M_ = set_observed_exogenous_variables(M_);" << endl;
+            if (it->first == "used")
+              output << "M_ = set_exogenous_variables_for_simulation(M_);" << endl;
           }
     }