Index: trunk/psModules/src/imcombine/pmSubtractionStamps.h
===================================================================
--- trunk/psModules/src/imcombine/pmSubtractionStamps.h	(revision 14513)
+++ trunk/psModules/src/imcombine/pmSubtractionStamps.h	(revision 14514)
@@ -18,4 +18,5 @@
 typedef struct {
     float x, y;                         ///< Position
+    float flux;                         ///< Flux
     float xNorm, yNorm;                 ///< Normalised position
     psKernel *reference;                ///< Reference image postage stamp
@@ -39,4 +40,5 @@
 psArray *pmSubtractionSetStamps(const psVector *x, ///< x coordinates for each stamp
                                 const psVector *y, ///< y coordinates for each stamp
+                                const psVector *flux, ///< Flux for each stamp, or NULL
                                 const psImage *mask, ///< Mask, or NULL
                                 const psRegion *region ///< Region in which to search for stamps, or NULL
@@ -53,10 +55,8 @@
 
 /// Generate target for stamps based on list
-psArray *pmSubtractionGenerateStamps(const psVector *x, ///< x coordinates for each stamp
-                                     const psVector *y, ///< y coordinates for each stamp
-                                     const psVector *flux, ///< Flux for each stamp
-                                     float sigma, ///< Gaussian width for each stamp
-                                     int footprint, ///< Stamp footprint size
-                                     const pmSubtractionKernels *kernels ///< Kernel basis functions
+bool pmSubtractionGenerateStamps(psArray *stamps, ///< Stamps
+                                 float sigma, ///< Gaussian width for each stamp
+                                 int footprint, ///< Stamp footprint size
+                                 const pmSubtractionKernels *kernels ///< Kernel basis functions
     );
 
