Index: /trunk/ippTasks/diskbalance.pro
===================================================================
--- /trunk/ippTasks/diskbalance.pro	(revision 31881)
+++ /trunk/ippTasks/diskbalance.pro	(revision 31882)
@@ -85,5 +85,9 @@
 
 macro set.balance.target
-  $BALANCE_TARGET = $1
+ if ($0 != 2) 
+   echo "USAGE: set.balance.target (DESTINATION|SOURCE)"
+   break
+ end
+ $BALANCE_TARGET = $1
 end
 
@@ -100,5 +104,5 @@
 $BALANCE_LIMIT       = 500
 $BALANCE_OFFSET      = 0
-$BALANCE_TARGET      = SOURCE
+$BALANCE_TARGET      = "SOURCE"
 # Select Nebulous objects which should be shuffled
 task           balance.load
@@ -164,5 +168,5 @@
 
   # locked list
-:  task.exit    default
+  task.exit    default
     showcommand failure
   end
@@ -205,10 +209,10 @@
     book getword balancePending $pageName destination_host -var DEST_HOST
     # Fix this with multihost restriction when possible.
-    if ("$target" == "DESTINATION")
+    if ("$BALANCE_TARGET" == "DESTINATION")
        set.host.for.balance $DEST_HOST
     else 
        set.host.for.balance $SOURCE_HOST
     end
-   
+    
 
     stdout NULL
@@ -229,5 +233,5 @@
 
   # default exit status
-  task.exit default
+  task.exit     default
     process_exit balancePending $options:0 $JOB_STATUS
   end
