Index: branches/eam_branches/ipp-20150405/ippTasks/remote.pro
===================================================================
--- branches/eam_branches/ipp-20150405/ippTasks/remote.pro	(revision 38084)
+++ branches/eam_branches/ipp-20150405/ippTasks/remote.pro	(revision 38152)
@@ -27,4 +27,5 @@
   stack
   staticsky
+  diff
 end
 
@@ -121,5 +122,10 @@
 
     # min entry limit?
-    $run = remotetool -definebyquery -label $label -stage $stage -path_base neb://@HOST@.0/remote/$label -limit 500
+    if ("$stage" == "stack") 
+	$run = remotetool -definebyquery -label $label -stage $stage -path_base neb://@HOST@.0/remote/$label -limit 50
+    else 
+	$run = remotetool -definebyquery -label $label -stage $stage -path_base neb://@HOST@.0/remote/$label -limit 500
+    end
+
     if ($DB:n == 0)
       option DEFAULT
@@ -293,5 +299,8 @@
     end
     if ("$STAGE" == "staticsky")
-      $command = sc_prepare_staticsky.pl --camera GPC1 --sky_id $STAGE_ID --remote_id $REMOTE_ID --path_base $outroot -dbname $DBNAME
+      $command = sc_prepare_staticsky.pl --camera GPC1 --sky_id $STAGE_ID --remote_id $REMOTE_ID --path_base $outroot --dbname $DBNAME
+    end
+    if ("$STAGE" == "diff")
+      $command = sc_prepare_diff.pl --camera GPC1 --diff_id $STAGE_ID --remote_id $REMOTE_ID --path_base $outroot --dbname $DBNAME
     end
 
