Index: trunk/ppStack/src/ppStackLoop.h
===================================================================
--- trunk/ppStack/src/ppStackLoop.h	(revision 27427)
+++ trunk/ppStack/src/ppStackLoop.h	(revision 30620)
@@ -1,12 +1,4 @@
 #ifndef PPSTACK_LOOP_H
 #define PPSTACK_LOOP_H
-
-#include <pslib.h>
-#include <psmodules.h>
-
-#include "ppStackOptions.h"
-#include "ppStackThread.h"
-#include "ppStack.h"
-
 
 // Loop over the inputs, doing the combination
@@ -71,9 +63,12 @@
 
 // Cleanup following combination
-bool ppStackCleanup(
+bool ppStackCleanupFiles(
     ppStackThreadData *stack,           // Stack
     ppStackOptions *options,            // Options
-    pmConfig *config                    // Configuration
-    );
+    pmConfig *config,			// Configuration
+    ppStackFileList stackFiles,         // cleanup these stack files
+    ppStackFileList photFiles,          // cleanup these phot files (PHOT or NOP)
+    bool closeJPEGs    			// close the jpeg files?
+);
 
 // Photometry
@@ -89,3 +84,8 @@
     );
 
+
+bool ppStackUpdateHeader(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config);
+bool ppStackJPEGs(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config);
+bool ppStackStats(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config);
+
 #endif
