Index: /trunk/src/scriptbuilder/structures/ScriptIncident.java
===================================================================
--- /trunk/src/scriptbuilder/structures/ScriptIncident.java	(revision 9)
+++ /trunk/src/scriptbuilder/structures/ScriptIncident.java	(revision 12)
@@ -66,4 +66,9 @@
      */
     private int latestStart = 0;
+    
+    /**
+     * Number of events in this incident.
+     */
+    public int eventCount = 0;
 
     SimulationScript script;
@@ -175,4 +180,6 @@
             t.addEvent(ev);
         }
+        eventCount++;
+        
         if (start > latestStart)
         {
@@ -227,5 +234,5 @@
             }
         }
-        length = lengthSoFar + 100;
+        length = lengthSoFar;
     }
 
