Index: trunk/psModules/src/imcombine/pmStack.c
===================================================================
--- trunk/psModules/src/imcombine/pmStack.c	(revision 16629)
+++ trunk/psModules/src/imcombine/pmStack.c	(revision 16681)
@@ -8,6 +8,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2008-02-23 03:19:34 $
+ *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2008-02-27 02:25:10 $
  *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
  *
@@ -311,5 +311,5 @@
               }
           }
-          if (useVariance) {
+          if (useVariance && safe) {
               // Use variance to check that the two are consistent
               float diff = pixelData->data.F32[0] - pixelData->data.F32[1];
@@ -381,4 +381,10 @@
     }
 
+    image->data.F32[y][x] = imageValue;
+    mask->data.PS_TYPE_MASK_DATA[y][x] = maskValue;
+    if (variance) {
+        variance->data.F32[y][x] = varianceValue;
+    }
+
     return;
 }
