Index: trunk/psModules/src/imcombine/pmStack.c
===================================================================
--- trunk/psModules/src/imcombine/pmStack.c	(revision 13520)
+++ trunk/psModules/src/imcombine/pmStack.c	(revision 13716)
@@ -8,6 +8,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-05-25 03:43:22 $
+ *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-06-08 02:52:21 $
  *
  *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
@@ -21,4 +21,8 @@
 #include <stdio.h>
 #include <pslib.h>
+
+#include "pmHDU.h"
+#include "pmFPA.h"
+#include "pmConceptsAverage.h"
 
 #include "pmStack.h"
@@ -513,4 +517,16 @@
     psFree(buffer);
 
+    psList *cells = psListAlloc(NULL);  // List of cells, for concept update
+    for (int i = 0; i < num; i++) {
+        pmStackData *data = input->data[i]; // Stacking data; contains the list of pixels
+        psListAdd(cells, PS_LIST_TAIL, data->sky->parent);
+    }
+    if (!pmConceptsAverageCells(combined->parent, cells, NULL, NULL, false)) {
+        psError(PS_ERR_UNKNOWN, false, "Unable to average concepts for input sky readouts.");
+        psFree(cells);
+        return false;
+    }
+    psFree(cells);
+
     return true;
 }
