Index: /tags/ipp-20110406/ppStack/src/ppStackLoop.c
===================================================================
--- /tags/ipp-20110406/ppStack/src/ppStackLoop.c	(revision 31414)
+++ /tags/ipp-20110406/ppStack/src/ppStackLoop.c	(revision 31415)
@@ -134,4 +134,12 @@
     ppStackMemDump("final");
 
+    // Update Header
+    // Do this before performing photometry so that the cmf header gets all of the information.
+    if (!ppStackUpdateHeader(stack, options, config)) {
+        psError(psErrorCodeLast(), false, "Unable to update header.");
+        psFree(stack);
+        return false;
+    }
+
     // Photometry
     psTrace("ppStack", 1, "Photometering stacked image....\n");
@@ -143,10 +151,4 @@
     ppStackMemDump("photometry");
 
-    // Update Header
-    if (!ppStackUpdateHeader(stack, options, config)) {
-        psError(psErrorCodeLast(), false, "Unable to update header.");
-        psFree(stack);
-        return false;
-    }
     // Create JPEGS
     if (!ppStackJPEGs(stack, options, config)) {
