Index: /branches/pap/ppStack/src/ppStackMatch.c
===================================================================
--- /branches/pap/ppStack/src/ppStackMatch.c	(revision 26305)
+++ /branches/pap/ppStack/src/ppStackMatch.c	(revision 26306)
@@ -73,5 +73,5 @@
     psString name = NULL;               // Output name
     psStringAppend(&name, "%s_%d.sources", root, number);
-    FILE file = fopen(name, "w");       // File to write
+    FILE *file = fopen(name, "w");      // File to write
     psFree(name);
     for (int i = 0; i < sources->n; i++) {
Index: /branches/pap/ppStack/src/ppStackSources.c
===================================================================
--- /branches/pap/ppStack/src/ppStackSources.c	(revision 26305)
+++ /branches/pap/ppStack/src/ppStackSources.c	(revision 26306)
@@ -272,5 +272,5 @@
     // Double check: all transparencies should be zero
     {
-        psArray *matches = pmSourceMatchSources(sourceLists, radius); // List of matches
+        psArray *matches = pmSourceMatchSources(sourceLists, radius, true); // List of matches
         if (!matches) {
             psError(PS_ERR_UNKNOWN, false, "Unable to match sources");
@@ -278,6 +278,7 @@
             return false;
         }
-        psVector *trans = pmSourceMatchRelphot(matches, zp, iter, tol, starLimit, transIter, transRej,
-                                               transThresh, starRej, starSys);
+        psVector *trans = pmSourceMatchRelphot(matches, zp, tol, iter1, starRej1, starSys1,
+                                               iter2, starRej2, starSys2, starLimit,
+                                               transIter, transRej, transThresh);
         for (int i = 0; i < num; i++) {
             fprintf(stderr, "Transparency of image %d: %f\n", i, trans->data.F32[i]);
