Index: trunk/ppTranslate/src/ppMops.c
===================================================================
--- trunk/ppTranslate/src/ppMops.c	(revision 28212)
+++ trunk/ppTranslate/src/ppMops.c	(revision 28623)
@@ -20,15 +20,17 @@
     }
 
-    if (!ppMopsPurgeDuplicates(detections)) {
+    ppMopsDetections *merged = ppMopsMerge(detections); // Merged detections
+    psFree(detections);
+    if (!merged) {
         psErrorStackPrint(stderr, "Unable to merge detections");
         exit(PS_EXIT_SYS_ERROR);
     }
 
-    if (!ppMopsWrite(detections, args)) {
+    if (!ppMopsWrite(merged, args)) {
         psErrorStackPrint(stderr, "Unable to write detections");
         exit(PS_EXIT_SYS_ERROR);
     }
 
-    psFree(detections);
+    psFree(merged);
     psFree(args);
 
