Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 8248)
+++ trunk/ippTools/src/dettool.c	(revision 8279)
@@ -474,14 +474,6 @@
         iteration,
         rawExp->exp_id,
-        rawExp->camera,
-        rawExp->telescope,
-        rawExp->exp_type,
-        rawExp->imfiles,
-        rawExp->filter,
-        rawExp->airmass,
-        rawExp->ra,
-        rawExp->decl,
-        rawExp->exp_time,
-        rawExp->background
+        true,   // use
+        false   // accept
     );
 }
@@ -1788,4 +1780,13 @@
         return false;
     }
+    psString class_id = psMetadataLookupStr(&status, config->args, "-class_id");
+    if (!status) {
+        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -class_id");
+        return false;
+    }
+    if (!class_id) {
+        psError(PS_ERR_UNKNOWN, true, "-class_id is required");
+        return false;
+    }
     psString recipe = psMetadataLookupStr(&status, config->args, "-recip");
     if (!status) {
@@ -1844,4 +1845,5 @@
                 iteration,
                 exp_id,
+                class_id,
                 recipe,
                 accept
@@ -2149,14 +2151,6 @@
             newIteration,
             inputExp->exp_id,
-            inputExp->camera,
-            inputExp->telescope,
-            inputExp->exp_type,
-            inputExp->imfiles,
-            inputExp->filter,
-            inputExp->airmass,
-            inputExp->ra,
-            inputExp->decl,
-            inputExp->exp_time,
-            inputExp->background
+            true,   // use
+            true    // accept
         );
         psArrayAdd(newInputExps, 0, newInputExp);
