diff --git a/ComputingTasks.cc b/ComputingTasks.cc
index 4955fa1c5a24d896ed7437afebb13468ce9ce589..1f10ea5a62b6b7563d4a9d0ae53f9b55b2f4aec1 100644
--- a/ComputingTasks.cc
+++ b/ComputingTasks.cc
@@ -3687,6 +3687,29 @@ CalibSmootherStatement::checkPass(ModFileStructure &mod_file_struct, WarningCons
   mod_file_struct.calib_smoother_present = true;
 }
 
+Statement *
+CalibSmootherStatement::cloneAndReindexSymbIds(DataTree &dynamic_datatree, SymbolTable &orig_symbol_table)
+{
+  SymbolList new_symbol_list;
+  try
+    {
+      SymbolTable *new_symbol_table =  dynamic_datatree.getSymbolTable();
+      vector<string> symbols = symbol_list.get_symbols();
+      for (vector<string>::const_iterator it = symbols.begin(); it != symbols.end(); it++)
+        {
+          new_symbol_table->getID(*it);
+          new_symbol_list.addSymbol(*it);
+        }
+    }
+  catch (...)
+    {
+      cerr << "ERROR: A variable in the calib_smoother statement was not found in the symbol table" << endl
+           << "       This likely means that you have declared a varexo that is not used in the model" << endl;
+      exit(EXIT_FAILURE);
+    }
+  return new CalibSmootherStatement(new_symbol_list, options_list);
+}
+
 void
 CalibSmootherStatement::writeOutput(ostream &output, const string &basename) const
 {
diff --git a/ComputingTasks.hh b/ComputingTasks.hh
index 3d3f07f50cca78e9570e5c9b18eca6efb7805bcd..7f17a30a97831b536b935ed49bfedfd2f60883fd 100644
--- a/ComputingTasks.hh
+++ b/ComputingTasks.hh
@@ -579,6 +579,7 @@ public:
                          const OptionsList &options_list_arg);
   virtual void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings);
   virtual void writeOutput(ostream &output, const string &basename) const;
+  virtual Statement *cloneAndReindexSymbIds(DataTree &dynamic_datatree, SymbolTable &orig_symbol_table);
 };
 
 class ExtendedPathStatement : public Statement