Index: branches/tap_branches/ppSub/src/ppSubBackground.c
===================================================================
--- branches/tap_branches/ppSub/src/ppSubBackground.c	(revision 25900)
+++ branches/tap_branches/ppSub/src/ppSubBackground.c	(revision 27838)
@@ -42,6 +42,6 @@
     if (!modelRO) {
         // Create the background model
-        if (!psphotModelBackground(config, view, "PPSUB.OUTPUT")) {
-            psError(PS_ERR_UNKNOWN, false, "Unable to model background");
+        if (!psphotModelBackgroundReadoutFileIndex(config, view, "PPSUB.OUTPUT", 0)) {
+            psError(psErrorCodeLast(), false, "Unable to model background");
             psFree(view);
             return false;
@@ -50,5 +50,5 @@
         modelRO = pmFPAfileThisReadout(config->files, view, "PSPHOT.BACKMDL");
         if (!modelRO) {
-            psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find background model");
+            psError(psErrorCodeLast(), false, "Unable to find background model");
             psFree(view);
             return false;
