Index: trunk/psModules/src/camera/pmFPARead.c
===================================================================
--- trunk/psModules/src/camera/pmFPARead.c	(revision 18030)
+++ trunk/psModules/src/camera/pmFPARead.c	(revision 18137)
@@ -81,5 +81,6 @@
 // In the process, reads the header and concepts
 static bool cellNumReadouts(pmCell *cell,    // Cell of interest
-                            psFits *fits     // FITS file
+                            psFits *fits,    // FITS file
+			    psDB *db
     )
 {
@@ -93,5 +94,5 @@
         return false;
     }
-    if (!pmCellReadHeader(cell, fits)) {
+    if (!pmCellReadHeader(cell, fits, db)) {
         psError(PS_ERR_IO, false, "Unable to read header for cell!\n");
         return false;
@@ -228,5 +229,5 @@
         return false;
     }
-    int naxis3 = cellNumReadouts(cell, fits); // Number of planes
+    int naxis3 = cellNumReadouts(cell, fits, db); // Number of planes
     if (z >= naxis3) {
         // No more to read
@@ -415,5 +416,5 @@
     }
 
-    int naxis3 = cellNumReadouts(cell, fits); // Number of image planes
+    int naxis3 = cellNumReadouts(cell, fits, db); // Number of image planes
     if (z >= naxis3) {
         psError(PS_ERR_IO, false, "Desired image plane (%d) exceeds available number (%d).",
@@ -719,5 +720,5 @@
 // pmReadoutReadNext is maintained here (for now) to maintain backwards compatibility.
 // pmReadoutReadNext has been replaced by pmReadoutRead, pmReadoutReadChunk, pmReadoutMore
-bool pmReadoutReadNext(bool *status, pmReadout *readout, psFits *fits, int z, int numScans)
+bool pmReadoutReadNext(bool *status, pmReadout *readout, psFits *fits, int z, int numScans, psDB *db)
 {
     PS_ASSERT_PTR_NON_NULL(readout, false);
@@ -740,5 +741,5 @@
     }
 
-    if (!pmCellReadHeader(cell, fits)) {
+    if (!pmCellReadHeader(cell, fits, db)) {
         psError(PS_ERR_IO, false, "Unable to read header for cell!\n");
         return false;
@@ -921,10 +922,10 @@
 }
 
-int pmCellNumReadouts(pmCell *cell, psFits *fits)
+int pmCellNumReadouts(pmCell *cell, psFits *fits, psDB *db)
 {
     PS_ASSERT_PTR_NON_NULL(cell, false);
     PS_ASSERT_FITS_NON_NULL(fits, false);
 
-    return cellNumReadouts(cell, fits);
+    return cellNumReadouts(cell, fits, db);
 }
 
