Index: trunk/ippScripts/scripts/nightly_science.pl
===================================================================
--- trunk/ippScripts/scripts/nightly_science.pl	(revision 34220)
+++ trunk/ippScripts/scripts/nightly_science.pl	(revision 34221)
@@ -1006,4 +1006,29 @@
 	$cmd .= " -set_reduction NIGHTLY_STACK ";
     }
+    if (defined($science_config{$target}{ADDITIONAL_STACK_LABEL})) {
+	# Grab list of skycells
+	my $skycell_select = '';
+	{
+	    my %skycells = ();
+	    my $warpcmd = "$warptool -warped -label $label -data_group $data_group  -dbname $dbname";
+	    my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf) = 
+		run(command => $warpcmd, verbose => $verbose);
+	    unless($success) {
+		$error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
+		&my_die("Unabel to perform warptool -warped to determine skycell_ids: $error_code",$target);
+	    }
+	    my $runs = $mdcParser->parse_list(join "", @$stdout_buf) or
+		&my_die("Unabel to parse warptool -warped to determine skycell_ids: $error_code",$target);
+	    if ($#{ $runs } != -1) {
+		for my $warp (@$runs) {
+		    $skycells{$warp->{skycell_id}} = 1;
+		}
+		foreach my $skycell (sort (keys (%skycells))) {
+		    $skycell_select .= " -skycell $skycell ";
+		}
+		$cmd .= " -select_label $science_config{$target}{ADDITIONAL_STACK_LABEL} $skycell_select ";
+	    }
+	}
+    }
     $cmd .= " $select ";
     if ($debug == 1) {
