diff --git a/MAPS/HMS/DETEC/hdc.map b/MAPS/HMS/DETEC/hdc.map
index 4311a238928221d2a0f10917ced912df7525d2fb..da7d9037f80d18563d161503eea581f0770f0b22 100644
--- a/MAPS/HMS/DETEC/hdc.map
+++ b/MAPS/HMS/DETEC/hdc.map
@@ -6,7 +6,7 @@ DETECTOR=11  ! HMS chambers
 ROC=3
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  111,1000,   0,   0
   96,   3,   1  ! Plane U, wire 1
   97,   3,   2  ! Plane U, wire 2
@@ -118,7 +118,7 @@ REFINDEX=0
   15,   3, 107  ! Plane U, wire 107
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   96,   4,   1  ! Plane V, wire 1
   97,   4,   2  ! Plane V, wire 2
   98,   4,   3  ! Plane V, wire 3
@@ -151,7 +151,7 @@ REFINDEX=0
  126,   4,  29  ! Plane V, wire 29
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
    0,   4,  30  ! Plane V, wire 30
    1,   4,  31  ! Plane V, wire 31
@@ -217,7 +217,7 @@ REFINDEX=0
   62,   4,  91  ! Plane V, wire 91
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
   96,   4,  92  ! Plane V, wire 92
   97,   4,  93  ! Plane V, wire 93
   98,   4,  94  ! Plane V, wire 94
@@ -332,7 +332,7 @@ REFINDEX=0
   15,   1,  96  ! Plane X, wire 96
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   80,   1,  97  ! Plane X, wire 97
   81,   1,  98  ! Plane X, wire 98
   82,   1,  99  ! Plane X, wire 99
@@ -351,7 +351,7 @@ REFINDEX=0
   95,   1, 112  ! Plane X, wire 112
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
  112,   6,   1  ! Plane X', wire 1
  113,   6,   2  ! Plane X', wire 2
  114,   6,   3  ! Plane X', wire 3
@@ -370,7 +370,7 @@ REFINDEX=0
  127,   6,  16  ! Plane X', wire 16
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  112,   6,  17  ! Plane X', wire 17
  113,   6,  18  ! Plane X', wire 18
  114,   6,  19  ! Plane X', wire 19
@@ -389,7 +389,7 @@ REFINDEX=0
  127,   6,  32  ! Plane X', wire 32
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
    0,   6,  33  ! Plane X', wire 33
    1,   6,  34  ! Plane X', wire 34
    2,   6,  35  ! Plane X', wire 35
@@ -472,7 +472,7 @@ REFINDEX=0
   79,   6, 112  ! Plane X', wire 112
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
   64,   2,   1  ! Plane Y, wire 1
   65,   2,   2  ! Plane Y, wire 2
   66,   2,   3  ! Plane Y, wire 3
@@ -527,7 +527,7 @@ REFINDEX=0
  124,   2,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   2
    0,   5,   1  ! Plane Y', wire 1
    1,   5,   2  ! Plane Y', wire 2
@@ -583,7 +583,7 @@ REFINDEX=0
   60,   5,  52  ! Plane Y', wire 52
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   96,   9,   1  ! Plane U, wire 1
   97,   9,   2  ! Plane U, wire 2
   98,   9,   3  ! Plane U, wire 3
@@ -616,7 +616,7 @@ REFINDEX=0
  126,   9,  29  ! Plane U, wire 29
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
    0,   9,  30  ! Plane U, wire 30
    1,   9,  31  ! Plane U, wire 31
    2,   9,  32  ! Plane U, wire 32
@@ -697,7 +697,7 @@ REFINDEX=0
   95,   9, 107  ! Plane U, wire 107
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   80,  10,   1  ! Plane V, wire 1
   81,  10,   2  ! Plane V, wire 2
   82,  10,   3  ! Plane V, wire 3
@@ -715,7 +715,7 @@ REFINDEX=0
   94,  12, 113  ! Plane X', wire 113
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   96,  10,  15  ! Plane V, wire 15
   97,  10,  16  ! Plane V, wire 16
   98,  10,  17  ! Plane V, wire 17
@@ -749,7 +749,7 @@ REFINDEX=0
  127,  10,  45  ! Plane V, wire 45
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   3
    0,  10,  46  ! Plane V, wire 46
    1,  10,  47  ! Plane V, wire 47
@@ -815,7 +815,7 @@ REFINDEX=0
   63,  10, 107  ! Plane V, wire 107
 
 SLOT=13
-REFINDEX=0
+REFINDEX=1
    0,   7,   1  ! Plane X, wire 1
    1,   7,   2  ! Plane X, wire 2
    2,   7,   3  ! Plane X, wire 3
@@ -946,7 +946,7 @@ REFINDEX=0
  127,  12,  16  ! Plane X', wire 16
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   16,  12,  17  ! Plane X', wire 17
   17,  12,  18  ! Plane X', wire 18
   18,  12,  19  ! Plane X', wire 19
@@ -965,7 +965,7 @@ REFINDEX=0
   31,  12,  32  ! Plane X', wire 32
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
    0,  12,  33  ! Plane X', wire 33
    1,  12,  34  ! Plane X', wire 34
    2,  12,  35  ! Plane X', wire 35
@@ -1048,7 +1048,7 @@ REFINDEX=0
   79,  12, 112  ! Plane X', wire 112
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
   64,   8,   1  ! Plane Y, wire 1
   65,   8,   2  ! Plane Y, wire 2
   66,   8,   3  ! Plane Y, wire 3
@@ -1103,7 +1103,7 @@ REFINDEX=0
  124,   8,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
   64,  11,   1  ! Plane Y', wire 1
   65,  11,   2  ! Plane Y', wire 2
diff --git a/MAPS/HMS/DETEC/hdc_hhodo_htrig.map b/MAPS/HMS/DETEC/hdc_hhodo_htrig.map
index a9a7753709ad17a126e87b3fd2356a932025d3b0..5c042e251dd4fa9d11fee7bc131b72536d4c1ecd 100644
--- a/MAPS/HMS/DETEC/hdc_hhodo_htrig.map
+++ b/MAPS/HMS/DETEC/hdc_hhodo_htrig.map
@@ -58,7 +58,7 @@ DETECTOR=11  ! HMS chambers
 ROC=3
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  111,1000,   0,   0
   96,   3,   1  ! Plane U, wire 1
   97,   3,   2  ! Plane U, wire 2
@@ -170,7 +170,7 @@ REFINDEX=0
   15,   3, 107  ! Plane U, wire 107
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   96,   4,   1  ! Plane V, wire 1
   97,   4,   2  ! Plane V, wire 2
   98,   4,   3  ! Plane V, wire 3
@@ -203,7 +203,7 @@ REFINDEX=0
  126,   4,  29  ! Plane V, wire 29
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
    0,   4,  30  ! Plane V, wire 30
    1,   4,  31  ! Plane V, wire 31
@@ -269,7 +269,7 @@ REFINDEX=0
   62,   4,  91  ! Plane V, wire 91
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
   96,   4,  92  ! Plane V, wire 92
   97,   4,  93  ! Plane V, wire 93
   98,   4,  94  ! Plane V, wire 94
@@ -384,7 +384,7 @@ REFINDEX=0
   15,   1,  96  ! Plane X, wire 96
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   80,   1,  97  ! Plane X, wire 97
   81,   1,  98  ! Plane X, wire 98
   82,   1,  99  ! Plane X, wire 99
@@ -403,7 +403,7 @@ REFINDEX=0
   95,   1, 112  ! Plane X, wire 112
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
  112,   6,   1  ! Plane X', wire 1
  113,   6,   2  ! Plane X', wire 2
  114,   6,   3  ! Plane X', wire 3
@@ -422,7 +422,7 @@ REFINDEX=0
  127,   6,  16  ! Plane X', wire 16
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  112,   6,  17  ! Plane X', wire 17
  113,   6,  18  ! Plane X', wire 18
  114,   6,  19  ! Plane X', wire 19
@@ -441,7 +441,7 @@ REFINDEX=0
  127,   6,  32  ! Plane X', wire 32
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
    0,   6,  33  ! Plane X', wire 33
    1,   6,  34  ! Plane X', wire 34
    2,   6,  35  ! Plane X', wire 35
@@ -524,7 +524,7 @@ REFINDEX=0
   79,   6, 112  ! Plane X', wire 112
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
   64,   2,   1  ! Plane Y, wire 1
   65,   2,   2  ! Plane Y, wire 2
   66,   2,   3  ! Plane Y, wire 3
@@ -579,7 +579,7 @@ REFINDEX=0
  124,   2,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   2
    0,   5,   1  ! Plane Y', wire 1
    1,   5,   2  ! Plane Y', wire 2
@@ -635,7 +635,7 @@ REFINDEX=0
   60,   5,  52  ! Plane Y', wire 52
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   96,   9,   1  ! Plane U, wire 1
   97,   9,   2  ! Plane U, wire 2
   98,   9,   3  ! Plane U, wire 3
@@ -668,7 +668,7 @@ REFINDEX=0
  126,   9,  29  ! Plane U, wire 29
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
    0,   9,  30  ! Plane U, wire 30
    1,   9,  31  ! Plane U, wire 31
    2,   9,  32  ! Plane U, wire 32
@@ -749,7 +749,7 @@ REFINDEX=0
   95,   9, 107  ! Plane U, wire 107
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   80,  10,   1  ! Plane V, wire 1
   81,  10,   2  ! Plane V, wire 2
   82,  10,   3  ! Plane V, wire 3
@@ -767,7 +767,7 @@ REFINDEX=0
   94,  12, 113  ! Plane X', wire 113
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   96,  10,  15  ! Plane V, wire 15
   97,  10,  16  ! Plane V, wire 16
   98,  10,  17  ! Plane V, wire 17
@@ -801,7 +801,7 @@ REFINDEX=0
  127,  10,  45  ! Plane V, wire 45
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   3
    0,  10,  46  ! Plane V, wire 46
    1,  10,  47  ! Plane V, wire 47
@@ -867,7 +867,7 @@ REFINDEX=0
   63,  10, 107  ! Plane V, wire 107
 
 SLOT=13
-REFINDEX=0
+REFINDEX=1
    0,   7,   1  ! Plane X, wire 1
    1,   7,   2  ! Plane X, wire 2
    2,   7,   3  ! Plane X, wire 3
@@ -998,7 +998,7 @@ REFINDEX=0
  127,  12,  16  ! Plane X', wire 16
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   16,  12,  17  ! Plane X', wire 17
   17,  12,  18  ! Plane X', wire 18
   18,  12,  19  ! Plane X', wire 19
@@ -1017,7 +1017,7 @@ REFINDEX=0
   31,  12,  32  ! Plane X', wire 32
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
    0,  12,  33  ! Plane X', wire 33
    1,  12,  34  ! Plane X', wire 34
    2,  12,  35  ! Plane X', wire 35
@@ -1100,7 +1100,7 @@ REFINDEX=0
   79,  12, 112  ! Plane X', wire 112
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
   64,   8,   1  ! Plane Y, wire 1
   65,   8,   2  ! Plane Y, wire 2
   66,   8,   3  ! Plane Y, wire 3
@@ -1155,7 +1155,7 @@ REFINDEX=0
  124,   8,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
   64,  11,   1  ! Plane Y', wire 1
   65,  11,   2  ! Plane Y', wire 2
diff --git a/MAPS/HMS/DETEC/hdc_htrig.map b/MAPS/HMS/DETEC/hdc_htrig.map
index b3e0097eda365accb4b940cbc151d64fad924c1c..40f6cba9bcb9ad859b3eab2649c4c43a1fddec19 100644
--- a/MAPS/HMS/DETEC/hdc_htrig.map
+++ b/MAPS/HMS/DETEC/hdc_htrig.map
@@ -57,7 +57,7 @@ DETECTOR=11  ! HMS chambers
 ROC=3
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  111,1000,   0,   0
   96,   3,   1  ! Plane U, wire 1
   97,   3,   2  ! Plane U, wire 2
@@ -169,7 +169,7 @@ REFINDEX=0
   15,   3, 107  ! Plane U, wire 107
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   96,   4,   1  ! Plane V, wire 1
   97,   4,   2  ! Plane V, wire 2
   98,   4,   3  ! Plane V, wire 3
@@ -202,7 +202,7 @@ REFINDEX=0
  126,   4,  29  ! Plane V, wire 29
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
    0,   4,  30  ! Plane V, wire 30
    1,   4,  31  ! Plane V, wire 31
@@ -268,7 +268,7 @@ REFINDEX=0
   62,   4,  91  ! Plane V, wire 91
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
   96,   4,  92  ! Plane V, wire 92
   97,   4,  93  ! Plane V, wire 93
   98,   4,  94  ! Plane V, wire 94
@@ -383,7 +383,7 @@ REFINDEX=0
   15,   1,  96  ! Plane X, wire 96
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   80,   1,  97  ! Plane X, wire 97
   81,   1,  98  ! Plane X, wire 98
   82,   1,  99  ! Plane X, wire 99
@@ -402,7 +402,7 @@ REFINDEX=0
   95,   1, 112  ! Plane X, wire 112
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
  112,   6,   1  ! Plane X', wire 1
  113,   6,   2  ! Plane X', wire 2
  114,   6,   3  ! Plane X', wire 3
@@ -421,7 +421,7 @@ REFINDEX=0
  127,   6,  16  ! Plane X', wire 16
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  112,   6,  17  ! Plane X', wire 17
  113,   6,  18  ! Plane X', wire 18
  114,   6,  19  ! Plane X', wire 19
@@ -440,7 +440,7 @@ REFINDEX=0
  127,   6,  32  ! Plane X', wire 32
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
    0,   6,  33  ! Plane X', wire 33
    1,   6,  34  ! Plane X', wire 34
    2,   6,  35  ! Plane X', wire 35
@@ -523,7 +523,7 @@ REFINDEX=0
   79,   6, 112  ! Plane X', wire 112
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
   64,   2,   1  ! Plane Y, wire 1
   65,   2,   2  ! Plane Y, wire 2
   66,   2,   3  ! Plane Y, wire 3
@@ -578,7 +578,7 @@ REFINDEX=0
  124,   2,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   2
    0,   5,   1  ! Plane Y', wire 1
    1,   5,   2  ! Plane Y', wire 2
@@ -634,7 +634,7 @@ REFINDEX=0
   60,   5,  52  ! Plane Y', wire 52
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   96,   9,   1  ! Plane U, wire 1
   97,   9,   2  ! Plane U, wire 2
   98,   9,   3  ! Plane U, wire 3
@@ -667,7 +667,7 @@ REFINDEX=0
  126,   9,  29  ! Plane U, wire 29
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
    0,   9,  30  ! Plane U, wire 30
    1,   9,  31  ! Plane U, wire 31
    2,   9,  32  ! Plane U, wire 32
@@ -748,7 +748,7 @@ REFINDEX=0
   95,   9, 107  ! Plane U, wire 107
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   80,  10,   1  ! Plane V, wire 1
   81,  10,   2  ! Plane V, wire 2
   82,  10,   3  ! Plane V, wire 3
@@ -766,7 +766,7 @@ REFINDEX=0
   94,  12, 113  ! Plane X', wire 113
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   96,  10,  15  ! Plane V, wire 15
   97,  10,  16  ! Plane V, wire 16
   98,  10,  17  ! Plane V, wire 17
@@ -800,7 +800,7 @@ REFINDEX=0
  127,  10,  45  ! Plane V, wire 45
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   3
    0,  10,  46  ! Plane V, wire 46
    1,  10,  47  ! Plane V, wire 47
@@ -866,7 +866,7 @@ REFINDEX=0
   63,  10, 107  ! Plane V, wire 107
 
 SLOT=13
-REFINDEX=0
+REFINDEX=1
    0,   7,   1  ! Plane X, wire 1
    1,   7,   2  ! Plane X, wire 2
    2,   7,   3  ! Plane X, wire 3
@@ -997,7 +997,7 @@ REFINDEX=0
  127,  12,  16  ! Plane X', wire 16
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   16,  12,  17  ! Plane X', wire 17
   17,  12,  18  ! Plane X', wire 18
   18,  12,  19  ! Plane X', wire 19
@@ -1016,7 +1016,7 @@ REFINDEX=0
   31,  12,  32  ! Plane X', wire 32
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
    0,  12,  33  ! Plane X', wire 33
    1,  12,  34  ! Plane X', wire 34
    2,  12,  35  ! Plane X', wire 35
@@ -1099,7 +1099,7 @@ REFINDEX=0
   79,  12, 112  ! Plane X', wire 112
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
   64,   8,   1  ! Plane Y, wire 1
   65,   8,   2  ! Plane Y, wire 2
   66,   8,   3  ! Plane Y, wire 3
@@ -1154,7 +1154,7 @@ REFINDEX=0
  124,   8,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
   64,  11,   1  ! Plane Y', wire 1
   65,  11,   2  ! Plane Y', wire 2
diff --git a/MAPS/HMS/DETEC/hms_stack.map b/MAPS/HMS/DETEC/hms_stack.map
index 1547c7c6a4d979ef94fdd9f27df1f9e71cb51f48..7bc335ba49bdd09d9c10b7e47e9ff762abe68278 100644
--- a/MAPS/HMS/DETEC/hms_stack.map
+++ b/MAPS/HMS/DETEC/hms_stack.map
@@ -60,7 +60,7 @@ DETECTOR=11  ! HMS chambers
 ROC=3
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  111,1000,   0,   0
   96,   3,   1  ! Plane U, wire 1
   97,   3,   2  ! Plane U, wire 2
@@ -172,7 +172,7 @@ REFINDEX=0
   15,   3, 107  ! Plane U, wire 107
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   96,   4,   1  ! Plane V, wire 1
   97,   4,   2  ! Plane V, wire 2
   98,   4,   3  ! Plane V, wire 3
@@ -205,7 +205,7 @@ REFINDEX=0
  126,   4,  29  ! Plane V, wire 29
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
    0,   4,  30  ! Plane V, wire 30
    1,   4,  31  ! Plane V, wire 31
@@ -271,7 +271,7 @@ REFINDEX=0
   62,   4,  91  ! Plane V, wire 91
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
   96,   4,  92  ! Plane V, wire 92
   97,   4,  93  ! Plane V, wire 93
   98,   4,  94  ! Plane V, wire 94
@@ -386,7 +386,7 @@ REFINDEX=0
   15,   1,  96  ! Plane X, wire 96
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   80,   1,  97  ! Plane X, wire 97
   81,   1,  98  ! Plane X, wire 98
   82,   1,  99  ! Plane X, wire 99
@@ -405,7 +405,7 @@ REFINDEX=0
   95,   1, 112  ! Plane X, wire 112
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
  112,   6,   1  ! Plane X', wire 1
  113,   6,   2  ! Plane X', wire 2
  114,   6,   3  ! Plane X', wire 3
@@ -424,7 +424,7 @@ REFINDEX=0
  127,   6,  16  ! Plane X', wire 16
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  112,   6,  17  ! Plane X', wire 17
  113,   6,  18  ! Plane X', wire 18
  114,   6,  19  ! Plane X', wire 19
@@ -443,7 +443,7 @@ REFINDEX=0
  127,   6,  32  ! Plane X', wire 32
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
    0,   6,  33  ! Plane X', wire 33
    1,   6,  34  ! Plane X', wire 34
    2,   6,  35  ! Plane X', wire 35
@@ -526,7 +526,7 @@ REFINDEX=0
   79,   6, 112  ! Plane X', wire 112
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
   64,   2,   1  ! Plane Y, wire 1
   65,   2,   2  ! Plane Y, wire 2
   66,   2,   3  ! Plane Y, wire 3
@@ -581,7 +581,7 @@ REFINDEX=0
  124,   2,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   2
    0,   5,   1  ! Plane Y', wire 1
    1,   5,   2  ! Plane Y', wire 2
@@ -637,7 +637,7 @@ REFINDEX=0
   60,   5,  52  ! Plane Y', wire 52
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   96,   9,   1  ! Plane U, wire 1
   97,   9,   2  ! Plane U, wire 2
   98,   9,   3  ! Plane U, wire 3
@@ -670,7 +670,7 @@ REFINDEX=0
  126,   9,  29  ! Plane U, wire 29
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
    0,   9,  30  ! Plane U, wire 30
    1,   9,  31  ! Plane U, wire 31
    2,   9,  32  ! Plane U, wire 32
@@ -751,7 +751,7 @@ REFINDEX=0
   95,   9, 107  ! Plane U, wire 107
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   80,  10,   1  ! Plane V, wire 1
   81,  10,   2  ! Plane V, wire 2
   82,  10,   3  ! Plane V, wire 3
@@ -769,7 +769,7 @@ REFINDEX=0
   94,  12, 113  ! Plane X', wire 113
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   96,  10,  15  ! Plane V, wire 15
   97,  10,  16  ! Plane V, wire 16
   98,  10,  17  ! Plane V, wire 17
@@ -803,7 +803,7 @@ REFINDEX=0
  127,  10,  45  ! Plane V, wire 45
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   3
    0,  10,  46  ! Plane V, wire 46
    1,  10,  47  ! Plane V, wire 47
@@ -869,7 +869,7 @@ REFINDEX=0
   63,  10, 107  ! Plane V, wire 107
 
 SLOT=13
-REFINDEX=0
+REFINDEX=1
    0,   7,   1  ! Plane X, wire 1
    1,   7,   2  ! Plane X, wire 2
    2,   7,   3  ! Plane X, wire 3
@@ -1000,7 +1000,7 @@ REFINDEX=0
  127,  12,  16  ! Plane X', wire 16
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   16,  12,  17  ! Plane X', wire 17
   17,  12,  18  ! Plane X', wire 18
   18,  12,  19  ! Plane X', wire 19
@@ -1019,7 +1019,7 @@ REFINDEX=0
   31,  12,  32  ! Plane X', wire 32
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
    0,  12,  33  ! Plane X', wire 33
    1,  12,  34  ! Plane X', wire 34
    2,  12,  35  ! Plane X', wire 35
@@ -1102,7 +1102,7 @@ REFINDEX=0
   79,  12, 112  ! Plane X', wire 112
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
   64,   8,   1  ! Plane Y, wire 1
   65,   8,   2  ! Plane Y, wire 2
   66,   8,   3  ! Plane Y, wire 3
@@ -1157,7 +1157,7 @@ REFINDEX=0
  124,   8,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
   64,  11,   1  ! Plane Y', wire 1
   65,  11,   2  ! Plane Y', wire 2
diff --git a/MAPS/HMS/DETEC/hms_stack_spring17_current_run.map b/MAPS/HMS/DETEC/hms_stack_spring17_current_run.map
index 93cbf3517dec2da77ff96cae878deec04cf43656..078ece3fcdef15c8b745800fb6b97d4cbc679db1 100644
--- a/MAPS/HMS/DETEC/hms_stack_spring17_current_run.map
+++ b/MAPS/HMS/DETEC/hms_stack_spring17_current_run.map
@@ -60,7 +60,7 @@ DETECTOR=11  ! HMS chambers
 ROC=3
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  111,1000,   0,   0
   96,   3,   1  ! Plane U, wire 1
   97,   3,   2  ! Plane U, wire 2
@@ -172,7 +172,7 @@ REFINDEX=0
   15,   3, 107  ! Plane U, wire 107
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   96,   4,   1  ! Plane V, wire 1
   97,   4,   2  ! Plane V, wire 2
   98,   4,   3  ! Plane V, wire 3
@@ -205,7 +205,7 @@ REFINDEX=0
  126,   4,  29  ! Plane V, wire 29
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
    0,   4,  30  ! Plane V, wire 30
    1,   4,  31  ! Plane V, wire 31
@@ -271,7 +271,7 @@ REFINDEX=0
   62,   4,  91  ! Plane V, wire 91
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
   96,   4,  92  ! Plane V, wire 92
   97,   4,  93  ! Plane V, wire 93
   98,   4,  94  ! Plane V, wire 94
@@ -386,7 +386,7 @@ REFINDEX=0
   15,   1,  96  ! Plane X, wire 96
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   80,   1,  97  ! Plane X, wire 97
   81,   1,  98  ! Plane X, wire 98
   82,   1,  99  ! Plane X, wire 99
@@ -405,7 +405,7 @@ REFINDEX=0
   95,   1, 112  ! Plane X, wire 112
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
  112,   6,   1  ! Plane X', wire 1
  113,   6,   2  ! Plane X', wire 2
  114,   6,   3  ! Plane X', wire 3
@@ -424,7 +424,7 @@ REFINDEX=0
  127,   6,  16  ! Plane X', wire 16
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  112,   6,  17  ! Plane X', wire 17
  113,   6,  18  ! Plane X', wire 18
  114,   6,  19  ! Plane X', wire 19
@@ -443,7 +443,7 @@ REFINDEX=0
  127,   6,  32  ! Plane X', wire 32
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
    0,   6,  33  ! Plane X', wire 33
    1,   6,  34  ! Plane X', wire 34
    2,   6,  35  ! Plane X', wire 35
@@ -526,7 +526,7 @@ REFINDEX=0
   79,   6, 112  ! Plane X', wire 112
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
   64,   2,   1  ! Plane Y, wire 1
   65,   2,   2  ! Plane Y, wire 2
   66,   2,   3  ! Plane Y, wire 3
@@ -581,7 +581,7 @@ REFINDEX=0
  124,   2,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   2
    0,   5,   1  ! Plane Y', wire 1
    1,   5,   2  ! Plane Y', wire 2
@@ -637,7 +637,7 @@ REFINDEX=0
   60,   5,  52  ! Plane Y', wire 52
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   96,   9,   1  ! Plane U, wire 1
   97,   9,   2  ! Plane U, wire 2
   98,   9,   3  ! Plane U, wire 3
@@ -670,7 +670,7 @@ REFINDEX=0
  126,   9,  29  ! Plane U, wire 29
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
    0,   9,  30  ! Plane U, wire 30
    1,   9,  31  ! Plane U, wire 31
    2,   9,  32  ! Plane U, wire 32
@@ -751,7 +751,7 @@ REFINDEX=0
   95,   9, 107  ! Plane U, wire 107
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   80,  10,   1  ! Plane V, wire 1
   81,  10,   2  ! Plane V, wire 2
   82,  10,   3  ! Plane V, wire 3
@@ -769,7 +769,7 @@ REFINDEX=0
   94,  12, 113  ! Plane X', wire 113
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   96,  10,  15  ! Plane V, wire 15
   97,  10,  16  ! Plane V, wire 16
   98,  10,  17  ! Plane V, wire 17
@@ -803,7 +803,7 @@ REFINDEX=0
  127,  10,  45  ! Plane V, wire 45
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   3
    0,  10,  46  ! Plane V, wire 46
    1,  10,  47  ! Plane V, wire 47
@@ -869,7 +869,7 @@ REFINDEX=0
   63,  10, 107  ! Plane V, wire 107
 
 SLOT=13
-REFINDEX=0
+REFINDEX=1
    0,   7,   1  ! Plane X, wire 1
    1,   7,   2  ! Plane X, wire 2
    2,   7,   3  ! Plane X, wire 3
@@ -1000,7 +1000,7 @@ REFINDEX=0
  127,  12,  16  ! Plane X', wire 16
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   16,  12,  17  ! Plane X', wire 17
   17,  12,  18  ! Plane X', wire 18
   18,  12,  19  ! Plane X', wire 19
@@ -1019,7 +1019,7 @@ REFINDEX=0
   31,  12,  32  ! Plane X', wire 32
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
    0,  12,  33  ! Plane X', wire 33
    1,  12,  34  ! Plane X', wire 34
    2,  12,  35  ! Plane X', wire 35
@@ -1102,7 +1102,7 @@ REFINDEX=0
   79,  12, 112  ! Plane X', wire 112
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
   64,   8,   1  ! Plane Y, wire 1
   65,   8,   2  ! Plane Y, wire 2
   66,   8,   3  ! Plane Y, wire 3
@@ -1157,7 +1157,7 @@ REFINDEX=0
  124,   8,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
   64,  11,   1  ! Plane Y', wire 1
   65,  11,   2  ! Plane Y', wire 2
diff --git a/MAPS/HMS/DETEC/hms_stack_spring17_run_00001_00243.map b/MAPS/HMS/DETEC/hms_stack_spring17_run_00001_00243.map
index 4f7ef43008e15a205c8ebe7eef965b3b403c7b3e..2206be3d8f0854139a474394a4ef35062269a186 100644
--- a/MAPS/HMS/DETEC/hms_stack_spring17_run_00001_00243.map
+++ b/MAPS/HMS/DETEC/hms_stack_spring17_run_00001_00243.map
@@ -60,7 +60,7 @@ DETECTOR=11  ! HMS chambers
 ROC=3
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  111,1000,   0,   0
   96,   3,   1  ! Plane U, wire 1
   97,   3,   2  ! Plane U, wire 2
@@ -172,7 +172,7 @@ REFINDEX=0
   15,   3, 107  ! Plane U, wire 107
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   96,   4,   1  ! Plane V, wire 1
   97,   4,   2  ! Plane V, wire 2
   98,   4,   3  ! Plane V, wire 3
@@ -205,7 +205,7 @@ REFINDEX=0
  126,   4,  29  ! Plane V, wire 29
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
    0,   4,  30  ! Plane V, wire 30
    1,   4,  31  ! Plane V, wire 31
@@ -271,7 +271,7 @@ REFINDEX=0
   62,   4,  91  ! Plane V, wire 91
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
   96,   4,  92  ! Plane V, wire 92
   97,   4,  93  ! Plane V, wire 93
   98,   4,  94  ! Plane V, wire 94
@@ -386,7 +386,7 @@ REFINDEX=0
   15,   1,  96  ! Plane X, wire 96
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
   80,   1,  97  ! Plane X, wire 97
   81,   1,  98  ! Plane X, wire 98
   82,   1,  99  ! Plane X, wire 99
@@ -405,7 +405,7 @@ REFINDEX=0
   95,   1, 112  ! Plane X, wire 112
 
 SLOT=4
-REFINDEX=0
+REFINDEX=1
  112,   6,   1  ! Plane X', wire 1
  113,   6,   2  ! Plane X', wire 2
  114,   6,   3  ! Plane X', wire 3
@@ -424,7 +424,7 @@ REFINDEX=0
  127,   6,  16  ! Plane X', wire 16
 
 SLOT=5
-REFINDEX=0
+REFINDEX=1
  112,   6,  17  ! Plane X', wire 17
  113,   6,  18  ! Plane X', wire 18
  114,   6,  19  ! Plane X', wire 19
@@ -443,7 +443,7 @@ REFINDEX=0
  127,   6,  32  ! Plane X', wire 32
 
 SLOT=7
-REFINDEX=0
+REFINDEX=1
    0,   6,  33  ! Plane X', wire 33
    1,   6,  34  ! Plane X', wire 34
    2,   6,  35  ! Plane X', wire 35
@@ -526,7 +526,7 @@ REFINDEX=0
   79,   6, 112  ! Plane X', wire 112
 
 SLOT=8
-REFINDEX=0
+REFINDEX=1
   64,   2,   1  ! Plane Y, wire 1
   65,   2,   2  ! Plane Y, wire 2
   66,   2,   3  ! Plane Y, wire 3
@@ -581,7 +581,7 @@ REFINDEX=0
  124,   2,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   2
    0,   5,   1  ! Plane Y', wire 1
    1,   5,   2  ! Plane Y', wire 2
@@ -637,7 +637,7 @@ REFINDEX=0
   60,   5,  52  ! Plane Y', wire 52
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   96,   9,   1  ! Plane U, wire 1
   97,   9,   2  ! Plane U, wire 2
   98,   9,   3  ! Plane U, wire 3
@@ -670,7 +670,7 @@ REFINDEX=0
  126,   9,  29  ! Plane U, wire 29
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
    0,   9,  30  ! Plane U, wire 30
    1,   9,  31  ! Plane U, wire 31
    2,   9,  32  ! Plane U, wire 32
@@ -751,7 +751,7 @@ REFINDEX=0
   95,   9, 107  ! Plane U, wire 107
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
   80,  10,   1  ! Plane V, wire 1
   81,  10,   2  ! Plane V, wire 2
   82,  10,   3  ! Plane V, wire 3
@@ -769,7 +769,7 @@ REFINDEX=0
   94,  12, 113  ! Plane X', wire 113
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   96,  10,  15  ! Plane V, wire 15
   97,  10,  16  ! Plane V, wire 16
   98,  10,  17  ! Plane V, wire 17
@@ -803,7 +803,7 @@ REFINDEX=0
  127,  10,  45  ! Plane V, wire 45
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   3
    0,  10,  46  ! Plane V, wire 46
    1,  10,  47  ! Plane V, wire 47
@@ -869,7 +869,7 @@ REFINDEX=0
   63,  10, 107  ! Plane V, wire 107
 
 SLOT=13
-REFINDEX=0
+REFINDEX=1
    0,   7,   1  ! Plane X, wire 1
    1,   7,   2  ! Plane X, wire 2
    2,   7,   3  ! Plane X, wire 3
@@ -1000,7 +1000,7 @@ REFINDEX=0
  127,  12,  16  ! Plane X', wire 16
 
 SLOT=14
-REFINDEX=0
+REFINDEX=1
   16,  12,  17  ! Plane X', wire 17
   17,  12,  18  ! Plane X', wire 18
   18,  12,  19  ! Plane X', wire 19
@@ -1019,7 +1019,7 @@ REFINDEX=0
   31,  12,  32  ! Plane X', wire 32
 
 SLOT=16
-REFINDEX=0
+REFINDEX=1
    0,  12,  33  ! Plane X', wire 33
    1,  12,  34  ! Plane X', wire 34
    2,  12,  35  ! Plane X', wire 35
@@ -1102,7 +1102,7 @@ REFINDEX=0
   79,  12, 112  ! Plane X', wire 112
 
 SLOT=17
-REFINDEX=0
+REFINDEX=1
   64,   8,   1  ! Plane Y, wire 1
   65,   8,   2  ! Plane Y, wire 2
   66,   8,   3  ! Plane Y, wire 3
@@ -1157,7 +1157,7 @@ REFINDEX=0
  124,   8,  52  ! Plane Y, wire 52
 
 SLOT=10
-REFINDEX=0
+REFINDEX=1
  127,1000,   0,   1
   64,  11,   1  ! Plane Y', wire 1
   65,  11,   2  ! Plane Y', wire 2