Index: trunk/ippScripts/scripts/dist_advancerun.pl
===================================================================
--- trunk/ippScripts/scripts/dist_advancerun.pl	(revision 27718)
+++ trunk/ippScripts/scripts/dist_advancerun.pl	(revision 28536)
@@ -66,4 +66,5 @@
 my $difftool   = can_run('difftool') or (warn "Can't find difftool" and $missing_tools = 1);
 my $stacktool   = can_run('stacktool') or (warn "Can't find stacktool" and $missing_tools = 1);
+my $bgtool = can_run('bgtool') or (warn "Can't find bgtool" and $missing_tools = 1);
 if ($missing_tools) {
     &my_die("Can't find required tools.", $dist_id, $PS_EXIT_CONFIG_ERROR);
@@ -82,4 +83,8 @@
     $tool_cmd = "$chiptool -chip_id";
     $list_mode = "-processedimfile";
+    $component_key = "class_id";
+} elsif ($stage eq "chip_bg") {
+    $tool_cmd = "$bgtool -chip_bg_id";
+    $list_mode = "-chip";
     $component_key = "class_id";
 } elsif ($stage eq "camera") {
@@ -94,4 +99,8 @@
     $tool_cmd = "$warptool -warp_id";
     $list_mode = "-warped";
+    $component_key = "skycell_id";
+} elsif ($stage eq "warp_bg") {
+    $tool_cmd = "$bgtool -warp_bg_id";
+    $list_mode = "-warp";
     $component_key = "skycell_id";
 } elsif ($stage eq "stack") {
