Index: trunk/ppImage/src/ppImageLoop.c
===================================================================
--- trunk/ppImage/src/ppImageLoop.c	(revision 10213)
+++ trunk/ppImage/src/ppImageLoop.c	(revision 10294)
@@ -6,4 +6,5 @@
 #include "ppImage.h"
 #include "ppImageDetrendFringe.h"
+#include "ppImageVersion.h"
 
 
@@ -36,5 +37,6 @@
     }
 
-    pmFPAview *view = pmFPAviewAlloc(0);
+    pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest
+    pmHDU *lastHDU = NULL;              // Last HDU that was updated
 
     // files associated with the science image
@@ -61,4 +63,17 @@
                 return false;
             }
+
+            // Put version information into the header
+            pmHDU *hdu = pmHDUFromCell(cell);
+            if (!hdu) {
+                psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find HDU for cell (%d,%d)!\n",
+                        view->chip, view->cell);
+                return false;
+            }
+            if (hdu != lastHDU) {
+                ppImageVersionMetadata(hdu->header);
+                lastHDU = hdu;
+            }
+
 
             // process each of the readouts
