Index: /trunk/Ohana/src/relastro/include/relastro.h
===================================================================
--- /trunk/Ohana/src/relastro/include/relastro.h	(revision 39388)
+++ /trunk/Ohana/src/relastro/include/relastro.h	(revision 39389)
@@ -348,4 +348,6 @@
 float *LoopWeight2MASS;
 float *LoopWeightTycho;
+char *LoopWeight2MASSstr;
+char *LoopWeightTychostr;
 
 int ImagSelect;
Index: /trunk/Ohana/src/relastro/src/args.c
===================================================================
--- /trunk/Ohana/src/relastro/src/args.c	(revision 39388)
+++ /trunk/Ohana/src/relastro/src/args.c	(revision 39389)
@@ -538,6 +538,8 @@
   // NOTE: this must come after -nloop above
   LoopWeight2MASS = NULL;
+  LoopWeight2MASSstr = NULL;
   if ((N = get_argument (argc, argv, "-loop-weights-2mass"))) {
     remove_argument (N, &argc, argv);
+    LoopWeight2MASSstr = strcreate(argv[N]);
     LoopWeight2MASS = ParseLoopWeights (argv[N]);
     remove_argument (N, &argc, argv);
@@ -546,4 +548,5 @@
   if ((N = get_argument (argc, argv, "-loop-weights-tycho"))) {
     remove_argument (N, &argc, argv);
+    LoopWeightTychostr = strcreate(argv[N]);
     LoopWeightTycho = ParseLoopWeights (argv[N]);
     remove_argument (N, &argc, argv);
Index: /trunk/Ohana/src/relastro/src/launch_region_hosts.c
===================================================================
--- /trunk/Ohana/src/relastro/src/launch_region_hosts.c	(revision 39388)
+++ /trunk/Ohana/src/relastro/src/launch_region_hosts.c	(revision 39389)
@@ -134,20 +134,6 @@
     if (MaxMeanOffset != 10.0) strextend (&command, "-max-mean-offset  %f", MaxMeanOffset);
 
-    if (LoopWeight2MASS) {
-      char *weightline = NULL;
-      for (i = 0; i < NLOOP; i++) {
-	strextend (&weightline, "%f,", LoopWeight2MASS[i]);
-      }
-      strextend (&command, "-loop-weights-2mass %s", weightline);
-      free (weightline);
-    }
-    if (LoopWeightTycho) {
-      char *weightline = NULL;
-      for (i = 0; i < NLOOP; i++) {
-	strextend (&weightline, "%f,", LoopWeightTycho[i]);
-      }
-      strextend (&command, "-loop-weights-tycho %s", weightline);
-      free (weightline);
-    }
+    if (LoopWeight2MASS) {  strextend (&command, "-loop-weights-2mass %s", LoopWeight2MASSstr); }
+    if (LoopWeightTycho) {  strextend (&command, "-loop-weights-tycho %s", LoopWeightTychostr); }
 
     strextend (&command, "-D RELASTRO_SRC_MEAS_TOOFEW %d", SRC_MEAS_TOOFEW);
