Index: trunk/ippScripts/scripts/stack_skycell.pl
===================================================================
--- trunk/ippScripts/scripts/stack_skycell.pl	(revision 19303)
+++ trunk/ippScripts/scripts/stack_skycell.pl	(revision 19352)
@@ -28,5 +28,5 @@
 use Pod::Usage qw( pod2usage );
 
-my ($stack_id, $dbname, $outroot, $debug, $verbose, $no_update, $no_op, $save_temps);
+my ($stack_id, $dbname, $outroot, $debug, $threads, $verbose, $no_update, $no_op, $save_temps);
 GetOptions(
     'stack_id|d=s'      => \$stack_id, # Stack identifier
@@ -34,4 +34,5 @@
     'outroot=s'         => \$outroot, # Output root name
     'debug'             => \$debug,   # Print to stdout
+    'threads=s'       	=> \$threads,   # Number of threads to use for ppStack
     'verbose'           => \$verbose,   # Print to stdout
     'no-update'         => \$no_update, # Don't update the database?
@@ -177,4 +178,5 @@
     $command .= " -F PSPHOT.BACKMDL PSPHOT.BACKMDL.MEF";
     $command .= " -photometry";
+    $command .= " -threads $threads" if defined $threads;
     $command .= " -debug-stack" if defined $debug;
     $command .= " -tracedest $traceDest -log $logDest";
