Index: /branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java
===================================================================
--- /branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java	(revision 1719)
+++ /branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java	(revision 1720)
@@ -691,9 +691,21 @@
 
 		Console.traceln(Level.INFO, "searching for patterns occuring most");
-
+		
+		count = 0;
+		size=appData.getMatchseqs().size();
+		Console.traceln(Level.INFO, "Pattern count is " + size);
 		// search each match in every other sequence
 		for (Iterator<Match> it = appData.getMatchseqs().iterator(); it.hasNext();) {
 			Match pattern = it.next();
-			
+			count++;
+			//Print out the progress
+			if(size>100) {
+				if((count%(size/100)==0)) {	
+					Console.traceln(Level.INFO,(Math.round((float) count/size*100))+ "%");
+				}
+			}
+			else {
+				Console.traceln(Level.INFO,(Math.round((float) count/size*100))+ "%");
+			}
 			// Skip sequences with more 0 events (scrolls) than other events.
 			// Both of the pattern sequences are equally long, so the zero
@@ -883,4 +895,5 @@
 			submat= new ObjectDistanceSubstitionMatrix(6,-3,false);
 			newTasks = new LinkedList<ITask>();
+			this.detectedAndReplacedTasks = true;
 		}
 
