Index: /branches/eam_branches/ipp-20211108/ippTools/src/stacktool.c
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTools/src/stacktool.c	(revision 41950)
+++ /branches/eam_branches/ipp-20211108/ippTools/src/stacktool.c	(revision 41951)
@@ -264,4 +264,10 @@
     pxAddLabelSearchArgs (config, where, "-warp_id",                   "warpRun.warp_id", "==");
     
+    // Add position dependence here.
+    if (!pxspaceBoxAddWhere(config, where)) {
+      psError(psErrorCodeLast(), false, "pxSpaceBoxAddWhere failed");
+      return false;
+    }
+  
     // these are used to build the HAVING restriction
     PXOPT_COPY_S32(config->args, having, "-min_num", "num_warp", ">=");
Index: /branches/eam_branches/ipp-20211108/ippTools/src/stacktoolConfig.c
===================================================================
--- /branches/eam_branches/ipp-20211108/ippTools/src/stacktoolConfig.c	(revision 41950)
+++ /branches/eam_branches/ipp-20211108/ippTools/src/stacktoolConfig.c	(revision 41951)
@@ -103,4 +103,5 @@
     psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-pretend",  0, "do not actually modify the database", false);
     psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false);
+    pxspaceBoxAddArguments(definebyqueryArgs);
 
     // -definerun
