Index: /branches/eam_branches/ipp-20101205/ppStack/src/ppStackLoop.c
===================================================================
--- /branches/eam_branches/ipp-20101205/ppStack/src/ppStackLoop.c	(revision 30007)
+++ /branches/eam_branches/ipp-20101205/ppStack/src/ppStackLoop.c	(revision 30008)
@@ -188,4 +188,11 @@
     ppStackMemDump("photometry");
 
+    // Update Header
+    if (!ppStackUpdateHeader(options, config)) {
+        psError(psErrorCodeLast(), false, "Unable to update header.");
+        psFree(stack);
+        return false;
+    }
+
     // Clean up
     psTrace("ppStack", 2, "Cleaning up after combination....\n");
@@ -231,4 +238,6 @@
         ppStackMemDump("unconv");
 
+	// XXX this chunk is identical to the file close / free operations in ppStackCleanup.c
+	// check on which files are active and when...
         if (!ppStackFilesIterateUp(config)) {
             psError(psErrorCodeLast(), false, "Unable to close files.");
