diff --git a/applications/reconstruct/src/ilw/ilw.cu b/applications/reconstruct/src/ilw/ilw.cu
index 42fe05cbf05addeb10c3a30ec4826d44fa23423e..6acc5c6778146a6b7a8691113b8d1b714774ebd0 100644
--- a/applications/reconstruct/src/ilw/ilw.cu
+++ b/applications/reconstruct/src/ilw/ilw.cu
@@ -78,11 +78,13 @@ __global__ void correspondence_energy_vector_kernel(
             (bestpoint.y - world1.y),
             (bestpoint.z - world1.z),
             mincost);
-        //eout(x,y) = (1.0f - mincost) * 7.0f; //confidence * 5.0f;
-        eout(x,y) = confidence * 7.0f;
+		eout(x,y) = max(eout(x,y), (1.0f - mincost) * 7.0f); //confidence * 5.0f;
+
+		// FIXME: This needs to be summed across all frames
+        //eout(x,y) = max(eout(x, y), confidence * 7.0f);
     } else if (mincost >= 1.0f && lane == 0) {
-        vout(x,y) = make_float4(0.0f);
-        eout(x,y) = 0.0f;
+        //vout(x,y) = make_float4(0.0f);
+        //eout(x,y) = 0.0f;
     }
 }