Index: trunk/ippScripts/scripts/detrend_reject_exp.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_reject_exp.pl	(revision 18372)
+++ trunk/ippScripts/scripts/detrend_reject_exp.pl	(revision 18445)
@@ -296,6 +296,10 @@
 }
 
-## XXX for now, always stop on each iteration
-$stop = 1;
+# Allow iteration to be turned off
+my $allow_iter = metadataLookupBool($ipprc->{rejection}, "ITERATION"); # Allow iteration?
+my $force_master = metadataLookupBool($ipprc->{rejection}, "MASTER"); # Force the stack to be accepted
+$stop = 1 unless $allow_iter;
+$master = 1 if $force_master;
+
 
 ## add the summary statistics, and request a new iteration if needed
