diff --git a/Makefile b/Makefile
index 0f1629a1f8d1d7d5d55c05b9bfd77d4e1b6d24f8..bd947c95b86393235cba56795afe4ec652256c53 100755
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ LAUNCHER_BINARY = launcher.jar
 TIFTRANSLATOR_BINARY = tiftranslator.jar
 TMLTRANSLATOR_BINARY = tmltranslator.jar
 JSOUP_BINARY = jsoup-1.8.1.jar
+COMMON_CODEC_BINARY = commons-codec-1.10.jar
 RUNDSE_BINARY = rundse.jar
 REMOTESIMULATOR_BINARY = simulationcontrol.jar
 RUNDSE_BINARY = rundse.jar
@@ -100,7 +101,7 @@ basicsvnapvrille:
 myrelease: basic launcher ttooljar 
 
 basic:
-	$(JAVAC) $(SOURCEPATH) $(TTOOL_SRC) $(CLASSPATH) $(TTOOL_BIN)/jsoup-1.8.1.jar $(TTOOL_SRC)/*.java	
+	$(JAVAC) $(SOURCEPATH) $(TTOOL_SRC) $(CLASSPATH) $(TTOOL_BIN)/$(JSOUP_BINARY):$(TTOOL_BIN)/$(COMMON_CODEC_BINARY) $(TTOOL_SRC)/*.java	
 
 jar: launcher ttooljar tiftranslator tmltranslator rundse remotesimulator
 
@@ -227,7 +228,7 @@ stdrelease:
 	cp $(TTOOL_DOC)/README_bin $(TTOOL_TARGET)/bin
 	cp $(TTOOL_BIN)/configuration.gcf $(TTOOL_TARGET)/bin
 	cp -R $(TTOOL_BIN)/$(TTOOL_LOTOS_H).h $(TTOOL_BIN)/$(TTOOL_LOTOS_H)_?.h $(TTOOL_BIN)/$(TTOOL_LOTOS_H)_?.t  $(TTOOL_BIN)/$(TTOOL_LOTOS_H)_?.f $(TTOOL_TARGET)/bin
-	cp $(TTOOL_BIN)/$(TTOOL_BINARY) $(TTOOL_BIN)/$(LAUNCHER_BINARY) $(TTOOL_BIN)/$(TIFTRANSLATOR_BINARY) $(TTOOL_BIN)/$(TMLTRANSLATOR_BINARY) $(TTOOL_BIN)/$(RUNDSE_BINARY) $(TTOOL_BIN)/$(TTOOL_CONFIG_SRC) $(TTOOL_BIN)/$(JSOUP_BINARY) $(TTOOL_TARGET)/bin	
+	cp $(TTOOL_BIN)/$(TTOOL_BINARY) $(TTOOL_BIN)/$(LAUNCHER_BINARY) $(TTOOL_BIN)/$(TIFTRANSLATOR_BINARY) $(TTOOL_BIN)/$(TMLTRANSLATOR_BINARY) $(TTOOL_BIN)/$(RUNDSE_BINARY) $(TTOOL_BIN)/$(TTOOL_CONFIG_SRC) $(TTOOL_BIN)/$(JSOUP_BINARY) $(TTOOL_BIN)/$(COMMON_CODEC_BINARY)  $(TTOOL_TARGET)/bin	
 
 # Basic release
 	cd $(TTOOL_TARGET_RELEASE);$(TAR) cfv $(TTOOL_STD_RELEASE)/release.tar *; $(GZIP) -9 $(TTOOL_STD_RELEASE)/release.tar; mv $(TTOOL_STD_RELEASE)/release.tar.gz $(TTOOL_STD_RELEASE)/release.tgz
diff --git a/bin/commons-codec-1.10.jar b/bin/commons-codec-1.10.jar
new file mode 100644
index 0000000000000000000000000000000000000000..1d7417c4031324cc6577a306cde57ae220f55523
Binary files /dev/null and b/bin/commons-codec-1.10.jar differ
diff --git a/modeling/MicroWaveOven_SafetySecurity_fullMethodo.xml b/modeling/MicroWaveOven_SafetySecurity_fullMethodo.xml
index 00114f2214597a4eb326e7813c34ce4b95a5d665..f8e675041da7f90d57a96a0541e27f84c204e3b1 100644
--- a/modeling/MicroWaveOven_SafetySecurity_fullMethodo.xml
+++ b/modeling/MicroWaveOven_SafetySecurity_fullMethodo.xml
@@ -79,19 +79,19 @@
 </COMPONENT>
 <SUBCOMPONENT type="5607" id="20" >
 <father id="27" num="0" />
-<cdparam x="355" y="352" />
+<cdparam x="355" y="367" />
 <sizeparam width="10" height="10" minWidth="10" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="355" maxX="355" minY="355" maxY="355" />
-<infoparam name="value " value="Analysis_UseCase" />
+<cdrectangleparam minX="355" maxX="355" minY="370" maxY="370" />
+<infoparam name="value " value="Attack Trees" />
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5607" id="21" >
 <father id="27" num="1" />
-<cdparam x="355" y="367" />
+<cdparam x="355" y="352" />
 <sizeparam width="10" height="10" minWidth="10" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="355" maxX="355" minY="370" maxY="370" />
-<infoparam name="value " value="Attack Trees" />
+<cdrectangleparam minX="355" maxX="355" minY="355" maxY="355" />
+<infoparam name="value " value="Analysis_UseCase" />
 </SUBCOMPONENT>
 
 <COMPONENT type="5602" id="35" >
@@ -1142,7 +1142,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="550" />
-<P1  x="120" y="239" id="597" />
+<P1  x="120" y="239" id="584" />
 <P2  x="191" y="187" id="566" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -1151,7 +1151,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="552" />
-<P1  x="118" y="191" id="584" />
+<P1  x="118" y="191" id="597" />
 <P2  x="191" y="167" id="564" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -1241,11 +1241,11 @@ A sensor attached to the door enables detection of
 </COMPONENT>
 <SUBCOMPONENT type="5304" id="594" >
 <father id="632" num="0" />
-<cdparam x="18" y="171" />
+<cdparam x="20" y="219" />
 <sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="0" maxX="24" minY="0" maxY="101" />
-<infoparam name="TGComponent" value="open" />
+<infoparam name="TGComponent" value="closed" />
 <TGConnectingPoint num="0" id="582" />
 <TGConnectingPoint num="1" id="583" />
 <TGConnectingPoint num="2" id="584" />
@@ -1261,11 +1261,11 @@ A sensor attached to the door enables detection of
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5304" id="607" >
 <father id="632" num="1" />
-<cdparam x="20" y="219" />
+<cdparam x="18" y="171" />
 <sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="0" maxX="24" minY="0" maxY="101" />
-<infoparam name="TGComponent" value="closed" />
+<infoparam name="TGComponent" value="open" />
 <TGConnectingPoint num="0" id="595" />
 <TGConnectingPoint num="1" id="596" />
 <TGConnectingPoint num="2" id="597" />
@@ -1350,7 +1350,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="673" />
-<P1  x="141" y="80" id="729" />
+<P1  x="141" y="80" id="716" />
 <P2  x="179" y="60" id="686" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -1359,7 +1359,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="675" />
-<P1  x="141" y="146" id="711" />
+<P1  x="141" y="146" id="724" />
 <P2  x="175" y="146" id="698" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -1461,13 +1461,13 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="22" id="757" />
 <TGConnectingPoint num="23" id="758" />
 </COMPONENT>
-<SUBCOMPONENT type="5304" id="721" >
+<SUBCOMPONENT type="5303" id="721" >
 <father id="759" num="0" />
-<cdparam x="41" y="126" />
-<sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="41" y="68" />
+<sizeparam width="100" height="50" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="0" maxX="14" minY="0" maxY="126" />
-<infoparam name="TGComponent" value="ringBell" />
+<cdrectangleparam minX="0" maxX="14" minY="0" maxY="116" />
+<infoparam name="TGComponent" value="remainingTime" />
 <TGConnectingPoint num="0" id="709" />
 <TGConnectingPoint num="1" id="710" />
 <TGConnectingPoint num="2" id="711" />
@@ -1480,14 +1480,17 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="9" id="718" />
 <TGConnectingPoint num="10" id="719" />
 <TGConnectingPoint num="11" id="720" />
+<extraparam>
+<Toggle value="" />
+</extraparam>
 </SUBCOMPONENT>
-<SUBCOMPONENT type="5303" id="734" >
+<SUBCOMPONENT type="5304" id="734" >
 <father id="759" num="1" />
-<cdparam x="41" y="68" />
-<sizeparam width="100" height="50" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="41" y="126" />
+<sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="0" maxX="14" minY="0" maxY="116" />
-<infoparam name="TGComponent" value="remainingTime" />
+<cdrectangleparam minX="0" maxX="14" minY="0" maxY="126" />
+<infoparam name="TGComponent" value="ringBell" />
 <TGConnectingPoint num="0" id="722" />
 <TGConnectingPoint num="1" id="723" />
 <TGConnectingPoint num="2" id="724" />
@@ -1500,9 +1503,6 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="9" id="731" />
 <TGConnectingPoint num="10" id="732" />
 <TGConnectingPoint num="11" id="733" />
-<extraparam>
-<Toggle value="" />
-</extraparam>
 </SUBCOMPONENT>
 
 
@@ -1532,7 +1532,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="764" />
-<P1  x="119" y="400" id="926" />
+<P1  x="119" y="400" id="939" />
 <P2  x="175" y="370" id="857" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -1541,7 +1541,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="766" />
-<P1  x="121" y="353" id="939" />
+<P1  x="121" y="353" id="926" />
 <P2  x="175" y="350" id="855" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -1550,7 +1550,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="768" />
-<P1  x="120" y="248" id="888" />
+<P1  x="120" y="248" id="875" />
 <P2  x="189" y="226" id="834" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -1559,7 +1559,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="770" />
-<P1  x="122" y="198" id="875" />
+<P1  x="122" y="198" id="888" />
 <P2  x="189" y="216" id="833" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -1763,11 +1763,11 @@ A sensor attached to the door enables detection of
 </COMPONENT>
 <SUBCOMPONENT type="5304" id="885" >
 <father id="923" num="0" />
-<cdparam x="22" y="178" />
+<cdparam x="20" y="228" />
 <sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="0" maxX="24" minY="0" maxY="101" />
-<infoparam name="TGComponent" value="open" />
+<infoparam name="TGComponent" value="closed" />
 <TGConnectingPoint num="0" id="873" />
 <TGConnectingPoint num="1" id="874" />
 <TGConnectingPoint num="2" id="875" />
@@ -1783,11 +1783,11 @@ A sensor attached to the door enables detection of
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5304" id="898" >
 <father id="923" num="1" />
-<cdparam x="20" y="228" />
+<cdparam x="22" y="178" />
 <sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="0" maxX="24" minY="0" maxY="101" />
-<infoparam name="TGComponent" value="closed" />
+<infoparam name="TGComponent" value="open" />
 <TGConnectingPoint num="0" id="886" />
 <TGConnectingPoint num="1" id="887" />
 <TGConnectingPoint num="2" id="888" />
@@ -1835,11 +1835,11 @@ A sensor attached to the door enables detection of
 </COMPONENT>
 <SUBCOMPONENT type="5304" id="936" >
 <father id="974" num="0" />
-<cdparam x="19" y="380" />
+<cdparam x="21" y="333" />
 <sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="0" maxX="24" minY="0" maxY="99" />
-<infoparam name="TGComponent" value="stopCooking" />
+<infoparam name="TGComponent" value="startCooking" />
 <TGConnectingPoint num="0" id="924" />
 <TGConnectingPoint num="1" id="925" />
 <TGConnectingPoint num="2" id="926" />
@@ -1855,11 +1855,11 @@ A sensor attached to the door enables detection of
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5304" id="949" >
 <father id="974" num="1" />
-<cdparam x="21" y="333" />
+<cdparam x="19" y="380" />
 <sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="0" maxX="24" minY="0" maxY="99" />
-<infoparam name="TGComponent" value="startCooking" />
+<infoparam name="TGComponent" value="stopCooking" />
 <TGConnectingPoint num="0" id="937" />
 <TGConnectingPoint num="1" id="938" />
 <TGConnectingPoint num="2" id="939" />
@@ -3487,11 +3487,11 @@ A sensor attached to the door enables detection of
 </COMPONENT>
 <SUBCOMPONENT type="609" id="1859" >
 <father id="1896" num="0" />
-<cdparam x="618" y="235" />
-<sizeparam width="97" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="618" y="299" />
+<sizeparam width="32" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="5" maxX="5" minY="10" maxY="255" />
-<infoparam name="action state" value="magnetronIsOn" />
+<infoparam name="action state" value="end" />
 <TGConnectingPoint num="0" id="1851" />
 <TGConnectingPoint num="1" id="1852" />
 <TGConnectingPoint num="2" id="1853" />
@@ -3503,11 +3503,11 @@ A sensor attached to the door enables detection of
 </SUBCOMPONENT>
 <SUBCOMPONENT type="609" id="1868" >
 <father id="1896" num="1" />
-<cdparam x="618" y="299" />
-<sizeparam width="32" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="618" y="235" />
+<sizeparam width="97" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="5" maxX="5" minY="10" maxY="255" />
-<infoparam name="action state" value="end" />
+<infoparam name="action state" value="magnetronIsOn" />
 <TGConnectingPoint num="0" id="1860" />
 <TGConnectingPoint num="1" id="1861" />
 <TGConnectingPoint num="2" id="1862" />
@@ -3744,7 +3744,7 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="1" id="2006" />
 <TGConnectingPoint num="2" id="2007" />
 <P1  x="746" y="209" id="2134" />
-<P2  x="864" y="242" id="2309" />
+<P2  x="864" y="242" id="2348" />
 <Point x="832" y="209" />
 <Point x="832" y="241" />
 <AutomaticDrawing  data="true" />
@@ -3772,7 +3772,7 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="0" id="2011" />
 <TGConnectingPoint num="1" id="2012" />
 <TGConnectingPoint num="2" id="2013" />
-<P1  x="836" y="301" id="2322" />
+<P1  x="836" y="301" id="2335" />
 <P2  x="746" y="229" id="2136" />
 <Point x="802" y="301" />
 <Point x="802" y="229" />
@@ -3802,7 +3802,7 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="1" id="2019" />
 <TGConnectingPoint num="2" id="2020" />
 <TGConnectingPoint num="3" id="2021" />
-<P1  x="559" y="549" id="2181" />
+<P1  x="559" y="549" id="2233" />
 <P2  x="652" y="239" id="2137" />
 <Point x="609" y="549" />
 <Point x="609" y="283" />
@@ -3847,7 +3847,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="2" />
 <TGConnectingPoint num="0" id="2025" />
-<P1  x="405" y="342" id="2452" />
+<P1  x="405" y="342" id="2426" />
 <P2  x="651" y="342" id="2102" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -3858,7 +3858,7 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="0" id="2028" />
 <TGConnectingPoint num="1" id="2029" />
 <P1  x="492" y="225" id="2088" />
-<P2  x="287" y="189" id="2426" />
+<P2  x="287" y="189" id="2452" />
 <Point x="492" y="189" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR><SUBCOMPONENT type="-1" id="2027" >
@@ -3875,7 +3875,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="1" />
 <TGConnectingPoint num="0" id="2031" />
-<P1  x="295" y="245" id="2465" />
+<P1  x="295" y="245" id="2413" />
 <P2  x="430" y="245" id="2089" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -3884,7 +3884,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="2" />
 <TGConnectingPoint num="0" id="2033" />
-<P1  x="493" y="474" id="2166" />
+<P1  x="493" y="474" id="2244" />
 <P2  x="492" y="265" id="2091" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -3895,7 +3895,7 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="0" id="2037" />
 <TGConnectingPoint num="1" id="2038" />
 <TGConnectingPoint num="2" id="2039" />
-<P1  x="287" y="145" id="2420" />
+<P1  x="287" y="145" id="2472" />
 <P2  x="621" y="209" id="2133" />
 <Point x="505" y="145" />
 <Point x="505" y="209" />
@@ -3923,7 +3923,7 @@ A sensor attached to the door enables detection of
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="2041" />
 <P1  x="569" y="124" id="2120" />
-<P2  x="287" y="125" id="2418" />
+<P2  x="287" y="125" id="2470" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
 <CONNECTOR type="133" id="2044" >
@@ -3931,7 +3931,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="2" />
 <TGConnectingPoint num="0" id="2043" />
-<P1  x="784" y="123" id="2283" />
+<P1  x="784" y="123" id="2374" />
 <P2  x="694" y="124" id="2121" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -3942,7 +3942,7 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="0" id="2047" />
 <TGConnectingPoint num="1" id="2048" />
 <TGConnectingPoint num="2" id="2049" />
-<P1  x="834" y="183" id="2296" />
+<P1  x="834" y="183" id="2361" />
 <P2  x="694" y="144" id="2123" />
 <Point x="753" y="183" />
 <Point x="753" y="144" />
@@ -4008,8 +4008,8 @@ A sensor attached to the door enables detection of
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="2060" />
 <TGConnectingPoint num="1" id="2061" />
-<P1  x="515" y="703" id="2220" />
-<P2  x="906" y="500" id="2363" />
+<P1  x="515" y="703" id="2194" />
+<P2  x="906" y="500" id="2298" />
 <Point x="906" y="703" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR><SUBCOMPONENT type="-1" id="2059" >
@@ -4028,7 +4028,7 @@ A sensor attached to the door enables detection of
 <TGConnectingPoint num="0" id="2064" />
 <TGConnectingPoint num="1" id="2065" />
 <P1  x="1253" y="400" id="2140" />
-<P2  x="1157" y="368" id="2336" />
+<P2  x="1157" y="368" id="2323" />
 <Point x="1253" y="367" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR><SUBCOMPONENT type="-1" id="2063" >
@@ -4045,7 +4045,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="2067" />
-<P1  x="1056" y="420" id="2349" />
+<P1  x="1056" y="420" id="2310" />
 <P2  x="1191" y="420" id="2141" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -4055,7 +4055,7 @@ A sensor attached to the door enables detection of
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="2070" />
 <TGConnectingPoint num="1" id="2071" />
-<P1  x="1140" y="480" id="2375" />
+<P1  x="1140" y="480" id="2284" />
 <P2  x="1253" y="440" id="2143" />
 <Point x="1253" y="480" />
 <AutomaticDrawing  data="true" />
@@ -4073,7 +4073,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="2073" />
-<P1  x="496" y="810" id="2244" />
+<P1  x="496" y="810" id="2166" />
 <P2  x="427" y="787" id="2164" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -4082,7 +4082,7 @@ A sensor attached to the door enables detection of
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="2075" />
-<P1  x="346" y="807" id="2231" />
+<P1  x="346" y="807" id="2179" />
 <P2  x="365" y="787" id="2163" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
@@ -4092,7 +4092,7 @@ A sensor attached to the door enables detection of
 <infoparam name="connector from TGComponent to TGComponent" value="" />
 <TGConnectingPoint num="0" id="2077" />
 <P1  x="396" y="747" id="2153" />
-<P2  x="404" y="723" id="2221" />
+<P2  x="404" y="723" id="2195" />
 <AutomaticDrawing  data="true" />
 </CONNECTOR>
 <COMPONENT type="301" id="2087" >
@@ -4290,12 +4290,12 @@ or by a maintenance station
 </COMPONENT>
 <SUBCOMPONENT type="1401" id="2178" >
 <father id="2281" num="0" />
-<cdparam x="416" y="474" />
-<sizeparam width="155" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="446" y="810" />
+<sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="173" minY="0" maxY="389" />
-<infoparam name="TGComponent" value="CorruptOrFakeMessage" />
+<cdrectangleparam minX="0" maxX="228" minY="0" maxY="389" />
+<infoparam name="TGComponent" value="BusProbing" />
 <TGConnectingPoint num="0" id="2166" />
 <TGConnectingPoint num="1" id="2167" />
 <TGConnectingPoint num="2" id="2168" />
@@ -4314,12 +4314,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2191" >
 <father id="2281" num="1" />
-<cdparam x="269" y="529" />
-<sizeparam width="290" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="256" y="807" />
+<sizeparam width="181" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="38" minY="0" maxY="389" />
-<infoparam name="TGComponent" value="AttackerInjectWrongFirmwareOnTheDomainBus" />
+<cdrectangleparam minX="0" maxX="147" minY="0" maxY="389" />
+<infoparam name="TGComponent" value="HijackingTheRemoteSession" />
 <TGConnectingPoint num="0" id="2179" />
 <TGConnectingPoint num="1" id="2180" />
 <TGConnectingPoint num="2" id="2181" />
@@ -4338,12 +4338,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2204" >
 <father id="2281" num="2" />
-<cdparam x="310" y="633" />
-<sizeparam width="151" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="293" y="683" />
+<sizeparam width="222" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="177" minY="0" maxY="389" />
-<infoparam name="TGComponent" value="ManInTheMiddleAttack" />
+<cdrectangleparam minX="0" maxX="106" minY="0" maxY="389" />
+<infoparam name="TGComponent" value="RemoteControlProtocolVulnerability" />
 <TGConnectingPoint num="0" id="2192" />
 <TGConnectingPoint num="1" id="2193" />
 <TGConnectingPoint num="2" id="2194" />
@@ -4357,7 +4357,7 @@ or by a maintenance station
 <TGConnectingPoint num="10" id="2202" />
 <TGConnectingPoint num="11" id="2203" />
 <extraparam>
-<info description="" root="false" />
+<info description="Exploit vulnerability or implementation error" root="false" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2217" >
@@ -4386,12 +4386,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2230" >
 <father id="2281" num="4" />
-<cdparam x="293" y="683" />
-<sizeparam width="222" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="310" y="633" />
+<sizeparam width="151" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="106" minY="0" maxY="389" />
-<infoparam name="TGComponent" value="RemoteControlProtocolVulnerability" />
+<cdrectangleparam minX="0" maxX="177" minY="0" maxY="389" />
+<infoparam name="TGComponent" value="ManInTheMiddleAttack" />
 <TGConnectingPoint num="0" id="2218" />
 <TGConnectingPoint num="1" id="2219" />
 <TGConnectingPoint num="2" id="2220" />
@@ -4405,17 +4405,17 @@ or by a maintenance station
 <TGConnectingPoint num="10" id="2228" />
 <TGConnectingPoint num="11" id="2229" />
 <extraparam>
-<info description="Exploit vulnerability or implementation error" root="false" />
+<info description="" root="false" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2243" >
 <father id="2281" num="5" />
-<cdparam x="256" y="807" />
-<sizeparam width="181" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="269" y="529" />
+<sizeparam width="290" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="147" minY="0" maxY="389" />
-<infoparam name="TGComponent" value="HijackingTheRemoteSession" />
+<cdrectangleparam minX="0" maxX="38" minY="0" maxY="389" />
+<infoparam name="TGComponent" value="AttackerInjectWrongFirmwareOnTheDomainBus" />
 <TGConnectingPoint num="0" id="2231" />
 <TGConnectingPoint num="1" id="2232" />
 <TGConnectingPoint num="2" id="2233" />
@@ -4434,12 +4434,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2256" >
 <father id="2281" num="6" />
-<cdparam x="446" y="810" />
-<sizeparam width="100" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="416" y="474" />
+<sizeparam width="155" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="228" minY="0" maxY="389" />
-<infoparam name="TGComponent" value="BusProbing" />
+<cdrectangleparam minX="0" maxX="173" minY="0" maxY="389" />
+<infoparam name="TGComponent" value="CorruptOrFakeMessage" />
 <TGConnectingPoint num="0" id="2244" />
 <TGConnectingPoint num="1" id="2245" />
 <TGConnectingPoint num="2" id="2246" />
@@ -4490,12 +4490,12 @@ or by a maintenance station
 </COMPONENT>
 <SUBCOMPONENT type="1401" id="2294" >
 <father id="2410" num="0" />
-<cdparam x="784" y="103" />
-<sizeparam width="376" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="989" y="460" />
+<sizeparam width="151" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="0" minY="0" maxY="425" />
-<infoparam name="TGComponent" value="InfectedControllerSendsTooManyMessagesToWirelessInterface" />
+<cdrectangleparam minX="0" maxX="225" minY="0" maxY="425" />
+<infoparam name="TGComponent" value="InjectBogusKeysInOven" />
 <TGConnectingPoint num="0" id="2282" />
 <TGConnectingPoint num="1" id="2283" />
 <TGConnectingPoint num="2" id="2284" />
@@ -4514,12 +4514,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2307" >
 <father id="2410" num="1" />
-<cdparam x="834" y="163" />
-<sizeparam width="269" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="830" y="460" />
+<sizeparam width="153" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="107" minY="0" maxY="425" />
-<infoparam name="TGComponent" value="ExploitVulnerabilitesOrImplementationError" />
+<cdrectangleparam minX="0" maxX="223" minY="0" maxY="425" />
+<infoparam name="TGComponent" value="FlashYourOwnFirmware" />
 <TGConnectingPoint num="0" id="2295" />
 <TGConnectingPoint num="1" id="2296" />
 <TGConnectingPoint num="2" id="2297" />
@@ -4538,12 +4538,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2320" >
 <father id="2410" num="2" />
-<cdparam x="864" y="222" />
-<sizeparam width="155" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="836" y="400" />
+<sizeparam width="220" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="221" minY="0" maxY="425" />
-<infoparam name="TGComponent" value="AbortFlashingOperation" />
+<cdrectangleparam minX="0" maxX="156" minY="0" maxY="425" />
+<infoparam name="TGComponent" value="FaultyORNoFirmwareAuthentication" />
 <TGConnectingPoint num="0" id="2308" />
 <TGConnectingPoint num="1" id="2309" />
 <TGConnectingPoint num="2" id="2310" />
@@ -4562,12 +4562,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2333" >
 <father id="2410" num="3" />
-<cdparam x="836" y="281" />
-<sizeparam width="251" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="802" y="348" />
+<sizeparam width="355" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="125" minY="0" maxY="425" />
-<infoparam name="TGComponent" value="InfectedWirelessInterfaceNotResponding" />
+<cdrectangleparam minX="0" maxX="21" minY="0" maxY="425" />
+<infoparam name="TGComponent" value="MaintenanceInstalledModifiedFirmwareToWirelessInterface" />
 <TGConnectingPoint num="0" id="2321" />
 <TGConnectingPoint num="1" id="2322" />
 <TGConnectingPoint num="2" id="2323" />
@@ -4581,17 +4581,17 @@ or by a maintenance station
 <TGConnectingPoint num="10" id="2331" />
 <TGConnectingPoint num="11" id="2332" />
 <extraparam>
-<info description="Denial of service" root="false" />
+<info description="" root="false" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2346" >
 <father id="2410" num="4" />
-<cdparam x="802" y="348" />
-<sizeparam width="355" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="836" y="281" />
+<sizeparam width="251" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="21" minY="0" maxY="425" />
-<infoparam name="TGComponent" value="MaintenanceInstalledModifiedFirmwareToWirelessInterface" />
+<cdrectangleparam minX="0" maxX="125" minY="0" maxY="425" />
+<infoparam name="TGComponent" value="InfectedWirelessInterfaceNotResponding" />
 <TGConnectingPoint num="0" id="2334" />
 <TGConnectingPoint num="1" id="2335" />
 <TGConnectingPoint num="2" id="2336" />
@@ -4605,17 +4605,17 @@ or by a maintenance station
 <TGConnectingPoint num="10" id="2344" />
 <TGConnectingPoint num="11" id="2345" />
 <extraparam>
-<info description="" root="false" />
+<info description="Denial of service" root="false" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2359" >
 <father id="2410" num="5" />
-<cdparam x="836" y="400" />
-<sizeparam width="220" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="864" y="222" />
+<sizeparam width="155" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="156" minY="0" maxY="425" />
-<infoparam name="TGComponent" value="FaultyORNoFirmwareAuthentication" />
+<cdrectangleparam minX="0" maxX="221" minY="0" maxY="425" />
+<infoparam name="TGComponent" value="AbortFlashingOperation" />
 <TGConnectingPoint num="0" id="2347" />
 <TGConnectingPoint num="1" id="2348" />
 <TGConnectingPoint num="2" id="2349" />
@@ -4634,12 +4634,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2372" >
 <father id="2410" num="6" />
-<cdparam x="830" y="460" />
-<sizeparam width="153" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="834" y="163" />
+<sizeparam width="269" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="223" minY="0" maxY="425" />
-<infoparam name="TGComponent" value="FlashYourOwnFirmware" />
+<cdrectangleparam minX="0" maxX="107" minY="0" maxY="425" />
+<infoparam name="TGComponent" value="ExploitVulnerabilitesOrImplementationError" />
 <TGConnectingPoint num="0" id="2360" />
 <TGConnectingPoint num="1" id="2361" />
 <TGConnectingPoint num="2" id="2362" />
@@ -4658,12 +4658,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2385" >
 <father id="2410" num="7" />
-<cdparam x="989" y="460" />
-<sizeparam width="151" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="784" y="103" />
+<sizeparam width="376" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="225" minY="0" maxY="425" />
-<infoparam name="TGComponent" value="InjectBogusKeysInOven" />
+<cdrectangleparam minX="0" maxX="0" minY="0" maxY="425" />
+<infoparam name="TGComponent" value="InfectedControllerSendsTooManyMessagesToWirelessInterface" />
 <TGConnectingPoint num="0" id="2373" />
 <TGConnectingPoint num="1" id="2374" />
 <TGConnectingPoint num="2" id="2375" />
@@ -4714,12 +4714,12 @@ or by a maintenance station
 </COMPONENT>
 <SUBCOMPONENT type="1401" id="2423" >
 <father id="2500" num="0" />
-<cdparam x="88" y="115" />
-<sizeparam width="199" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="99" y="225" />
+<sizeparam width="196" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="155" minY="0" maxY="273" />
-<infoparam name="TGComponent" value="OvenTakesTooLongToRespond" />
+<cdrectangleparam minX="0" maxX="158" minY="0" maxY="273" />
+<infoparam name="TGComponent" value="ExploitVulnerabilitiesInFlashing" />
 <TGConnectingPoint num="0" id="2411" />
 <TGConnectingPoint num="1" id="2412" />
 <TGConnectingPoint num="2" id="2413" />
@@ -4733,17 +4733,17 @@ or by a maintenance station
 <TGConnectingPoint num="10" id="2421" />
 <TGConnectingPoint num="11" id="2422" />
 <extraparam>
-<info description="Denial of Service Attack" root="false" />
+<info description="blah blah blah" root="false" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2436" >
 <father id="2500" num="1" />
-<cdparam x="90" y="169" />
-<sizeparam width="197" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="77" y="322" />
+<sizeparam width="328" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="157" minY="0" maxY="273" />
-<infoparam name="TGComponent" value="GainAccessToWirelessInterface" />
+<cdrectangleparam minX="0" maxX="26" minY="0" maxY="273" />
+<infoparam name="TGComponent" value="InfectedWirelessInterfaceShuttingDownCommunication" />
 <TGConnectingPoint num="0" id="2424" />
 <TGConnectingPoint num="1" id="2425" />
 <TGConnectingPoint num="2" id="2426" />
@@ -4786,12 +4786,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2462" >
 <father id="2500" num="3" />
-<cdparam x="77" y="322" />
-<sizeparam width="328" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="90" y="169" />
+<sizeparam width="197" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="26" minY="0" maxY="273" />
-<infoparam name="TGComponent" value="InfectedWirelessInterfaceShuttingDownCommunication" />
+<cdrectangleparam minX="0" maxX="157" minY="0" maxY="273" />
+<infoparam name="TGComponent" value="GainAccessToWirelessInterface" />
 <TGConnectingPoint num="0" id="2450" />
 <TGConnectingPoint num="1" id="2451" />
 <TGConnectingPoint num="2" id="2452" />
@@ -4810,12 +4810,12 @@ or by a maintenance station
 </SUBCOMPONENT>
 <SUBCOMPONENT type="1401" id="2475" >
 <father id="2500" num="4" />
-<cdparam x="99" y="225" />
-<sizeparam width="196" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="88" y="115" />
+<sizeparam width="199" height="40" minWidth="100" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <enabled value="true" />
-<cdrectangleparam minX="0" maxX="158" minY="0" maxY="273" />
-<infoparam name="TGComponent" value="ExploitVulnerabilitiesInFlashing" />
+<cdrectangleparam minX="0" maxX="155" minY="0" maxY="273" />
+<infoparam name="TGComponent" value="OvenTakesTooLongToRespond" />
 <TGConnectingPoint num="0" id="2463" />
 <TGConnectingPoint num="1" id="2464" />
 <TGConnectingPoint num="2" id="2465" />
@@ -4829,7 +4829,7 @@ or by a maintenance station
 <TGConnectingPoint num="10" id="2473" />
 <TGConnectingPoint num="11" id="2474" />
 <extraparam>
-<info description="blah blah blah" root="false" />
+<info description="Denial of Service Attack" root="false" />
 </extraparam>
 </SUBCOMPONENT>
 
@@ -4917,8 +4917,8 @@ or by a maintenance station
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Block0 to Block0" value="" />
 <TGConnectingPoint num="0" id="2503" />
-<P1  x="412" y="497" id="2581" />
-<P2  x="115" y="498" id="2731" />
+<P1  x="412" y="497" id="2731" />
+<P2  x="115" y="498" id="2756" />
 <AutomaticDrawing  data="true" />
 <extraparam>
 <isd value="in remoteStart(int value)" />
@@ -4966,7 +4966,7 @@ or by a maintenance station
 <infoparam name="connector from Block0 to Block0" value="" />
 <TGConnectingPoint num="0" id="2511" />
 <P1  x="418" y="753" id="2658" />
-<P2  x="319" y="752" id="2700" />
+<P2  x="319" y="752" id="2600" />
 <AutomaticDrawing  data="true" />
 <extraparam>
 <isd value="in ring()" />
@@ -4979,7 +4979,7 @@ or by a maintenance station
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Block0 to Block0" value="" />
 <TGConnectingPoint num="0" id="2513" />
-<P1  x="792" y="767" id="2608" />
+<P1  x="792" y="767" id="2708" />
 <P2  x="746" y="753" id="2659" />
 <AutomaticDrawing  data="true" />
 <extraparam>
@@ -4996,7 +4996,7 @@ or by a maintenance station
 <infoparam name="connector from Block0 to Block0" value="" />
 <TGConnectingPoint num="0" id="2515" />
 <P1  x="746" y="628" id="2648" />
-<P2  x="777" y="539" id="2624" />
+<P2  x="777" y="539" id="2674" />
 <AutomaticDrawing  data="true" />
 <extraparam>
 <isd value="in startM()" />
@@ -5011,7 +5011,7 @@ or by a maintenance station
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Block0 to Block0" value="" />
 <TGConnectingPoint num="0" id="2517" />
-<P1  x="385" y="598" id="2675" />
+<P1  x="385" y="598" id="2625" />
 <P2  x="418" y="711" id="2649" />
 <AutomaticDrawing  data="true" />
 <extraparam>
@@ -5164,49 +5164,13 @@ or by a maintenance station
 <Signal value="out wirelessChannelWrite(Message msg)" />
 </extraparam>
 </COMPONENT>
-<SUBCOMPONENT type="5000" id="2745" >
+<SUBCOMPONENT type="5000" id="2595" >
 <father id="2795" num="0" />
-<cdparam x="115" y="395" />
-<sizeparam width="921" height="412" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="433" y="231" />
+<sizeparam width="414" height="148" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="0" maxX="46" minY="0" maxY="219" />
-<infoparam name="Block0" value="MicroWaveOven" />
-<TGConnectingPoint num="0" id="2721" />
-<TGConnectingPoint num="1" id="2722" />
-<TGConnectingPoint num="2" id="2723" />
-<TGConnectingPoint num="3" id="2724" />
-<TGConnectingPoint num="4" id="2725" />
-<TGConnectingPoint num="5" id="2726" />
-<TGConnectingPoint num="6" id="2727" />
-<TGConnectingPoint num="7" id="2728" />
-<TGConnectingPoint num="8" id="2729" />
-<TGConnectingPoint num="9" id="2730" />
-<TGConnectingPoint num="10" id="2731" />
-<TGConnectingPoint num="11" id="2732" />
-<TGConnectingPoint num="12" id="2733" />
-<TGConnectingPoint num="13" id="2734" />
-<TGConnectingPoint num="14" id="2735" />
-<TGConnectingPoint num="15" id="2736" />
-<TGConnectingPoint num="16" id="2737" />
-<TGConnectingPoint num="17" id="2738" />
-<TGConnectingPoint num="18" id="2739" />
-<TGConnectingPoint num="19" id="2740" />
-<TGConnectingPoint num="20" id="2741" />
-<TGConnectingPoint num="21" id="2742" />
-<TGConnectingPoint num="22" id="2743" />
-<TGConnectingPoint num="23" id="2744" />
-<extraparam>
-<CryptoBlock value="false" />
-<Signal value="in remoteStart(int value)" />
-</extraparam>
-</SUBCOMPONENT>
-<SUBCOMPONENT type="5000" id="2595" >
-<father id="2745" num="0" />
-<cdparam x="412" y="459" />
-<sizeparam width="334" height="154" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="0" maxX="587" minY="0" maxY="258" />
-<infoparam name="Block0" value="WirelessInterface" />
+<cdrectangleparam minX="0" maxX="553" minY="0" maxY="483" />
+<infoparam name="Block0" value="RemoteControl" />
 <TGConnectingPoint num="0" id="2571" />
 <TGConnectingPoint num="1" id="2572" />
 <TGConnectingPoint num="2" id="2573" />
@@ -5233,10 +5197,10 @@ or by a maintenance station
 <TGConnectingPoint num="23" id="2594" />
 <extraparam>
 <CryptoBlock value="false" />
-<Attribute access="0" id="msg2" value="" type="5" typeOther="Message" />
+<Attribute access="0" id="duration" value="12" type="8" typeOther="" />
+<Attribute access="0" id="msg1" value="" type="5" typeOther="Message" />
 <Attribute access="0" id="PSK" value="" type="5" typeOther="Key" />
-<Attribute access="0" id="selectedDuration" value="" type="8" typeOther="" />
-<Attribute access="0" id="msg3" value="" type="5" typeOther="Message" />
+<Attribute access="0" id="msg" value="" type="5" typeOther="Message" />
 <Method value="Message encrypt(Message msg, Key k)" />
 <Method value="Message decrypt(Message msg, Key k)" />
 <Method value="Message sencrypt(Message msg, Key k)" />
@@ -5249,16 +5213,53 @@ or by a maintenance station
 <Method value="get2(Message msg, Message msg1, Message msg2)" />
 <Method value="get3(Message msg, Message msg1, Message msg2, Message msg3)" />
 <Method value="get4(Message msg, Message msg1, Message msg2, Message msg3, Message msg4)" />
-<Signal value="out remoteStart(int value)" />
+<globalCode value="" />
+<globalCode value="/* This is my global code !!!! */" />
+</extraparam>
+</SUBCOMPONENT>
+<SUBCOMPONENT type="5000" id="2770" >
+<father id="2795" num="1" />
+<cdparam x="115" y="395" />
+<sizeparam width="921" height="412" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="0" maxX="46" minY="0" maxY="219" />
+<infoparam name="Block0" value="MicroWaveOven" />
+<TGConnectingPoint num="0" id="2746" />
+<TGConnectingPoint num="1" id="2747" />
+<TGConnectingPoint num="2" id="2748" />
+<TGConnectingPoint num="3" id="2749" />
+<TGConnectingPoint num="4" id="2750" />
+<TGConnectingPoint num="5" id="2751" />
+<TGConnectingPoint num="6" id="2752" />
+<TGConnectingPoint num="7" id="2753" />
+<TGConnectingPoint num="8" id="2754" />
+<TGConnectingPoint num="9" id="2755" />
+<TGConnectingPoint num="10" id="2756" />
+<TGConnectingPoint num="11" id="2757" />
+<TGConnectingPoint num="12" id="2758" />
+<TGConnectingPoint num="13" id="2759" />
+<TGConnectingPoint num="14" id="2760" />
+<TGConnectingPoint num="15" id="2761" />
+<TGConnectingPoint num="16" id="2762" />
+<TGConnectingPoint num="17" id="2763" />
+<TGConnectingPoint num="18" id="2764" />
+<TGConnectingPoint num="19" id="2765" />
+<TGConnectingPoint num="20" id="2766" />
+<TGConnectingPoint num="21" id="2767" />
+<TGConnectingPoint num="22" id="2768" />
+<TGConnectingPoint num="23" id="2769" />
+<extraparam>
+<CryptoBlock value="false" />
+<Signal value="in remoteStart(int value)" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5000" id="2620" >
-<father id="2745" num="1" />
-<cdparam x="792" y="673" />
-<sizeparam width="215" height="126" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<father id="2770" num="0" />
+<cdparam x="138" y="705" />
+<sizeparam width="181" height="95" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="0" maxX="706" minY="0" maxY="286" />
-<infoparam name="Block0" value="Door" />
+<cdrectangleparam minX="0" maxX="740" minY="0" maxY="317" />
+<infoparam name="Block0" value="Bell" />
 <TGConnectingPoint num="0" id="2596" />
 <TGConnectingPoint num="1" id="2597" />
 <TGConnectingPoint num="2" id="2598" />
@@ -5285,32 +5286,24 @@ or by a maintenance station
 <TGConnectingPoint num="23" id="2619" />
 <extraparam>
 <CryptoBlock value="false" />
-<Method value="$openM()" />
-<Method value="$closeM()" />
-<Signal value="out closed()" />
-<Signal value="out open()" />
-<globalCode value="" />
+<Method value="$runBell()" />
+<Signal value="in ring()" />
 <globalCode value="extern void sendDatagram(char *data, int size);" />
 <globalCode value="" />
-<globalCode value="const char* openD = &quot;Open Door&quot;;" />
-<globalCode value="const char* closeD = &quot;Close Door&quot;;" />
-<globalCode value="" />
-<globalCode value="void _userImplemented_Door__openM() {" />
-<globalCode value="  sendDatagram(openD, 10);" />
-<globalCode value="}" />
+<globalCode value="const char* dring = &quot;Dring dring dring&quot;;" />
 <globalCode value="" />
-<globalCode value="void _userImplemented_Door__closeM() {" />
-<globalCode value="   sendDatagram(closeD, 10);" />
+<globalCode value="void _userImplemented_Bell__runBell() {" />
+<globalCode value="  sendDatagram(dring, 18);" />
 <globalCode value="}" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5000" id="2645" >
-<father id="2745" num="2" />
-<cdparam x="777" y="459" />
-<sizeparam width="253" height="160" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<father id="2770" num="1" />
+<cdparam x="129" y="517" />
+<sizeparam width="256" height="162" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="0" maxX="668" minY="0" maxY="252" />
-<infoparam name="Block0" value="Magnetron" />
+<cdrectangleparam minX="0" maxX="665" minY="0" maxY="250" />
+<infoparam name="Block0" value="ControlPanel" />
 <TGConnectingPoint num="0" id="2621" />
 <TGConnectingPoint num="1" id="2622" />
 <TGConnectingPoint num="2" id="2623" />
@@ -5337,25 +5330,14 @@ or by a maintenance station
 <TGConnectingPoint num="23" id="2644" />
 <extraparam>
 <CryptoBlock value="false" />
-<Attribute access="0" id="power" value="0" type="8" typeOther="" />
-<Method value="$ON()" />
-<Method value="$OFF()" />
-<Signal value="in startM()" />
-<Signal value="in stopM()" />
-<globalCode value="extern void sendDatagram(char *data, int size);" />
-<globalCode value="" />
-<globalCode value="" />
-<globalCode value="void _userImplemented_Magnetron__ON() {" />
-<globalCode value="  sendDatagram(&quot;Magnetron_ON&quot;, 13);" />
-<globalCode value="}" />
-<globalCode value="" />
-<globalCode value="void _userImplemented_Magnetron__OFF() {" />
-<globalCode value="   sendDatagram(&quot;Magnetron_OFF&quot;, 14);" />
-<globalCode value="}" />
+<Attribute access="0" id="duration" value="9" type="8" typeOther="" />
+<Signal value="in LEDOn()" />
+<Signal value="in LEDoff()" />
+<Signal value="out startButton(int duration)" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5000" id="2670" >
-<father id="2745" num="3" />
+<father id="2770" num="2" />
 <cdparam x="418" y="628" />
 <sizeparam width="328" height="167" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
@@ -5433,12 +5415,12 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5000" id="2695" >
-<father id="2745" num="4" />
-<cdparam x="129" y="517" />
-<sizeparam width="256" height="162" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<father id="2770" num="3" />
+<cdparam x="777" y="459" />
+<sizeparam width="253" height="160" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="0" maxX="665" minY="0" maxY="250" />
-<infoparam name="Block0" value="ControlPanel" />
+<cdrectangleparam minX="0" maxX="668" minY="0" maxY="252" />
+<infoparam name="Block0" value="Magnetron" />
 <TGConnectingPoint num="0" id="2671" />
 <TGConnectingPoint num="1" id="2672" />
 <TGConnectingPoint num="2" id="2673" />
@@ -5465,19 +5447,30 @@ or by a maintenance station
 <TGConnectingPoint num="23" id="2694" />
 <extraparam>
 <CryptoBlock value="false" />
-<Attribute access="0" id="duration" value="9" type="8" typeOther="" />
-<Signal value="in LEDOn()" />
-<Signal value="in LEDoff()" />
-<Signal value="out startButton(int duration)" />
+<Attribute access="0" id="power" value="0" type="8" typeOther="" />
+<Method value="$ON()" />
+<Method value="$OFF()" />
+<Signal value="in startM()" />
+<Signal value="in stopM()" />
+<globalCode value="extern void sendDatagram(char *data, int size);" />
+<globalCode value="" />
+<globalCode value="" />
+<globalCode value="void _userImplemented_Magnetron__ON() {" />
+<globalCode value="  sendDatagram(&quot;Magnetron_ON&quot;, 13);" />
+<globalCode value="}" />
+<globalCode value="" />
+<globalCode value="void _userImplemented_Magnetron__OFF() {" />
+<globalCode value="   sendDatagram(&quot;Magnetron_OFF&quot;, 14);" />
+<globalCode value="}" />
 </extraparam>
 </SUBCOMPONENT>
 <SUBCOMPONENT type="5000" id="2720" >
-<father id="2745" num="5" />
-<cdparam x="138" y="705" />
-<sizeparam width="181" height="95" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<father id="2770" num="4" />
+<cdparam x="792" y="673" />
+<sizeparam width="215" height="126" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="0" maxX="740" minY="0" maxY="317" />
-<infoparam name="Block0" value="Bell" />
+<cdrectangleparam minX="0" maxX="706" minY="0" maxY="286" />
+<infoparam name="Block0" value="Door" />
 <TGConnectingPoint num="0" id="2696" />
 <TGConnectingPoint num="1" id="2697" />
 <TGConnectingPoint num="2" id="2698" />
@@ -5504,54 +5497,62 @@ or by a maintenance station
 <TGConnectingPoint num="23" id="2719" />
 <extraparam>
 <CryptoBlock value="false" />
-<Method value="$runBell()" />
-<Signal value="in ring()" />
+<Method value="$openM()" />
+<Method value="$closeM()" />
+<Signal value="out closed()" />
+<Signal value="out open()" />
+<globalCode value="" />
 <globalCode value="extern void sendDatagram(char *data, int size);" />
 <globalCode value="" />
-<globalCode value="const char* dring = &quot;Dring dring dring&quot;;" />
+<globalCode value="const char* openD = &quot;Open Door&quot;;" />
+<globalCode value="const char* closeD = &quot;Close Door&quot;;" />
 <globalCode value="" />
-<globalCode value="void _userImplemented_Bell__runBell() {" />
-<globalCode value="  sendDatagram(dring, 18);" />
+<globalCode value="void _userImplemented_Door__openM() {" />
+<globalCode value="  sendDatagram(openD, 10);" />
+<globalCode value="}" />
+<globalCode value="" />
+<globalCode value="void _userImplemented_Door__closeM() {" />
+<globalCode value="   sendDatagram(closeD, 10);" />
 <globalCode value="}" />
 </extraparam>
 </SUBCOMPONENT>
-<SUBCOMPONENT type="5000" id="2770" >
-<father id="2795" num="1" />
-<cdparam x="433" y="231" />
-<sizeparam width="414" height="148" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<SUBCOMPONENT type="5000" id="2745" >
+<father id="2770" num="5" />
+<cdparam x="412" y="459" />
+<sizeparam width="334" height="154" minWidth="5" minHeight="2" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
-<cdrectangleparam minX="0" maxX="553" minY="0" maxY="483" />
-<infoparam name="Block0" value="RemoteControl" />
-<TGConnectingPoint num="0" id="2746" />
-<TGConnectingPoint num="1" id="2747" />
-<TGConnectingPoint num="2" id="2748" />
-<TGConnectingPoint num="3" id="2749" />
-<TGConnectingPoint num="4" id="2750" />
-<TGConnectingPoint num="5" id="2751" />
-<TGConnectingPoint num="6" id="2752" />
-<TGConnectingPoint num="7" id="2753" />
-<TGConnectingPoint num="8" id="2754" />
-<TGConnectingPoint num="9" id="2755" />
-<TGConnectingPoint num="10" id="2756" />
-<TGConnectingPoint num="11" id="2757" />
-<TGConnectingPoint num="12" id="2758" />
-<TGConnectingPoint num="13" id="2759" />
-<TGConnectingPoint num="14" id="2760" />
-<TGConnectingPoint num="15" id="2761" />
-<TGConnectingPoint num="16" id="2762" />
-<TGConnectingPoint num="17" id="2763" />
-<TGConnectingPoint num="18" id="2764" />
-<TGConnectingPoint num="19" id="2765" />
-<TGConnectingPoint num="20" id="2766" />
-<TGConnectingPoint num="21" id="2767" />
-<TGConnectingPoint num="22" id="2768" />
-<TGConnectingPoint num="23" id="2769" />
+<cdrectangleparam minX="0" maxX="587" minY="0" maxY="258" />
+<infoparam name="Block0" value="WirelessInterface" />
+<TGConnectingPoint num="0" id="2721" />
+<TGConnectingPoint num="1" id="2722" />
+<TGConnectingPoint num="2" id="2723" />
+<TGConnectingPoint num="3" id="2724" />
+<TGConnectingPoint num="4" id="2725" />
+<TGConnectingPoint num="5" id="2726" />
+<TGConnectingPoint num="6" id="2727" />
+<TGConnectingPoint num="7" id="2728" />
+<TGConnectingPoint num="8" id="2729" />
+<TGConnectingPoint num="9" id="2730" />
+<TGConnectingPoint num="10" id="2731" />
+<TGConnectingPoint num="11" id="2732" />
+<TGConnectingPoint num="12" id="2733" />
+<TGConnectingPoint num="13" id="2734" />
+<TGConnectingPoint num="14" id="2735" />
+<TGConnectingPoint num="15" id="2736" />
+<TGConnectingPoint num="16" id="2737" />
+<TGConnectingPoint num="17" id="2738" />
+<TGConnectingPoint num="18" id="2739" />
+<TGConnectingPoint num="19" id="2740" />
+<TGConnectingPoint num="20" id="2741" />
+<TGConnectingPoint num="21" id="2742" />
+<TGConnectingPoint num="22" id="2743" />
+<TGConnectingPoint num="23" id="2744" />
 <extraparam>
 <CryptoBlock value="false" />
-<Attribute access="0" id="duration" value="12" type="8" typeOther="" />
-<Attribute access="0" id="msg1" value="" type="5" typeOther="Message" />
+<Attribute access="0" id="msg2" value="" type="5" typeOther="Message" />
 <Attribute access="0" id="PSK" value="" type="5" typeOther="Key" />
-<Attribute access="0" id="msg" value="" type="5" typeOther="Message" />
+<Attribute access="0" id="selectedDuration" value="" type="8" typeOther="" />
+<Attribute access="0" id="msg3" value="" type="5" typeOther="Message" />
 <Method value="Message encrypt(Message msg, Key k)" />
 <Method value="Message decrypt(Message msg, Key k)" />
 <Method value="Message sencrypt(Message msg, Key k)" />
@@ -5564,8 +5565,7 @@ or by a maintenance station
 <Method value="get2(Message msg, Message msg1, Message msg2)" />
 <Method value="get3(Message msg, Message msg1, Message msg2, Message msg3)" />
 <Method value="get4(Message msg, Message msg1, Message msg2, Message msg3, Message msg4)" />
-<globalCode value="" />
-<globalCode value="/* This is my global code !!!! */" />
+<Signal value="out remoteStart(int value)" />
 </extraparam>
 </SUBCOMPONENT>
 
@@ -6180,64 +6180,117 @@ or by a maintenance station
 
 </AVATARStateMachineDiagramPanel>
 
-<AVATARStateMachineDiagramPanel name="RemoteControl" minX="10" maxX="1400" minY="10" maxY="900" >
-<CONNECTOR type="118" id="3053" >
-<cdparam x="516" y="268" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from List of all parameters of an Avatar SMD transition to UML Note" value="null" />
-<P1  x="508" y="133" id="3056" />
-<P2  x="661" y="95" id="3126" />
-<AutomaticDrawing  data="false" />
-</CONNECTOR>
-<CONNECTOR type="5102" id="3060" >
-<cdparam x="290" y="140" />
+<AVATARStateMachineDiagramPanel name="MicroWaveOven" minX="10" maxX="1400" minY="10" maxY="900" >
+<CONNECTOR type="5102" id="3059" >
+<cdparam x="407" y="70" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from start state to state0" value="null" />
-<TGConnectingPoint num="0" id="3059" />
-<P1  x="309" y="119" id="3186" />
-<P2  x="325" y="163" id="3133" />
+<TGConnectingPoint num="0" id="3058" />
+<P1  x="407" y="70" id="3101" />
+<P2  x="451" y="106" id="3061" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3058" >
-<father id="3060" num="0" />
-<cdparam x="340" y="118" />
-<sizeparam width="168" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3057" >
+<father id="3059" num="0" />
+<cdparam x="444" y="75" />
+<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3054" />
-<TGConnectingPoint num="1" id="3055" />
-<TGConnectingPoint num="2" id="3056" />
-<TGConnectingPoint num="3" id="3057" />
+<TGConnectingPoint num="0" id="3053" />
+<TGConnectingPoint num="1" id="3054" />
+<TGConnectingPoint num="2" id="3055" />
+<TGConnectingPoint num="3" id="3056" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
-<actions value="msg1.data = duration" />
-<actions value="msg = sencrypt(msg1, PSK)" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3067" >
-<cdparam x="327" y="221" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from start state to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3066" />
-<P1  x="325" y="213" id="3138" />
-<P2  x="347" y="291" id="3175" />
-<AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3065" >
-<father id="3067" num="0" />
-<cdparam x="364" y="248" />
-<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
+<COMPONENT type="5106" id="3100" >
+<cdparam x="396" y="106" />
+<sizeparam width="111" height="42" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="state0" value="Running" />
+<TGConnectingPoint num="0" id="3060" />
+<TGConnectingPoint num="1" id="3061" />
+<TGConnectingPoint num="2" id="3062" />
+<TGConnectingPoint num="3" id="3063" />
+<TGConnectingPoint num="4" id="3064" />
+<TGConnectingPoint num="5" id="3065" />
+<TGConnectingPoint num="6" id="3066" />
+<TGConnectingPoint num="7" id="3067" />
+<TGConnectingPoint num="8" id="3068" />
+<TGConnectingPoint num="9" id="3069" />
+<TGConnectingPoint num="10" id="3070" />
+<TGConnectingPoint num="11" id="3071" />
+<TGConnectingPoint num="12" id="3072" />
+<TGConnectingPoint num="13" id="3073" />
+<TGConnectingPoint num="14" id="3074" />
+<TGConnectingPoint num="15" id="3075" />
+<TGConnectingPoint num="16" id="3076" />
+<TGConnectingPoint num="17" id="3077" />
+<TGConnectingPoint num="18" id="3078" />
+<TGConnectingPoint num="19" id="3079" />
+<TGConnectingPoint num="20" id="3080" />
+<TGConnectingPoint num="21" id="3081" />
+<TGConnectingPoint num="22" id="3082" />
+<TGConnectingPoint num="23" id="3083" />
+<TGConnectingPoint num="24" id="3084" />
+<TGConnectingPoint num="25" id="3085" />
+<TGConnectingPoint num="26" id="3086" />
+<TGConnectingPoint num="27" id="3087" />
+<TGConnectingPoint num="28" id="3088" />
+<TGConnectingPoint num="29" id="3089" />
+<TGConnectingPoint num="30" id="3090" />
+<TGConnectingPoint num="31" id="3091" />
+<TGConnectingPoint num="32" id="3092" />
+<TGConnectingPoint num="33" id="3093" />
+<TGConnectingPoint num="34" id="3094" />
+<TGConnectingPoint num="35" id="3095" />
+<TGConnectingPoint num="36" id="3096" />
+<TGConnectingPoint num="37" id="3097" />
+<TGConnectingPoint num="38" id="3098" />
+<TGConnectingPoint num="39" id="3099" />
+<extraparam>
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="5100" id="3102" >
+<cdparam x="400" y="50" />
+<sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="start state" value="null" />
+<TGConnectingPoint num="0" id="3101" />
+</COMPONENT>
+
+
+</AVATARStateMachineDiagramPanel>
+
+<AVATARStateMachineDiagramPanel name="WirelessInterface" minX="10" maxX="1400" minY="10" maxY="900" >
+<CONNECTOR type="5102" id="3109" >
+<cdparam x="447" y="399" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector" value="null" />
+<TGConnectingPoint num="0" id="3108" />
+<P1  x="447" y="399" id="3144" />
+<P2  x="474" y="432" id="3179" />
+<AutomaticDrawing  data="true" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3107" >
+<father id="3109" num="0" />
+<cdparam x="447" y="439" />
+<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3061" />
-<TGConnectingPoint num="1" id="3062" />
-<TGConnectingPoint num="2" id="3063" />
-<TGConnectingPoint num="3" id="3064" />
+<TGConnectingPoint num="0" id="3103" />
+<TGConnectingPoint num="1" id="3104" />
+<TGConnectingPoint num="2" id="3105" />
+<TGConnectingPoint num="3" id="3106" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -6247,25 +6300,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3074" >
-<cdparam x="347" y="321" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector" value="null" />
-<TGConnectingPoint num="0" id="3073" />
-<P1  x="347" y="321" id="3176" />
-<P2  x="348" y="377" id="3090" />
+<CONNECTOR type="5102" id="3116" >
+<cdparam x="491" y="459" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector from Send signal to stop state" value="null" />
+<TGConnectingPoint num="0" id="3115" />
+<P1  x="474" y="462" id="3180" />
+<P2  x="485" y="495" id="3231" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3072" >
-<father id="3074" num="0" />
-<cdparam x="347" y="361" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3114" >
+<father id="3116" num="0" />
+<cdparam x="491" y="499" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3068" />
-<TGConnectingPoint num="1" id="3069" />
-<TGConnectingPoint num="2" id="3070" />
-<TGConnectingPoint num="3" id="3071" />
+<TGConnectingPoint num="0" id="3110" />
+<TGConnectingPoint num="1" id="3111" />
+<TGConnectingPoint num="2" id="3112" />
+<TGConnectingPoint num="3" id="3113" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -6275,419 +6328,414 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3081" >
-<cdparam x="373" y="427" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector" value="null" />
-<TGConnectingPoint num="0" id="3080" />
-<P1  x="373" y="427" id="3088" />
-<P2  x="375" y="442" id="3173" />
+<CONNECTOR type="5102" id="3123" >
+<cdparam x="455" y="352" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector from state0 to stop state" value="null" />
+<TGConnectingPoint num="0" id="3122" />
+<P1  x="414" y="275" id="3196" />
+<P2  x="447" y="349" id="3139" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3079" >
-<father id="3081" num="0" />
-<cdparam x="373" y="467" />
-<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3121" >
+<father id="3123" num="0" />
+<cdparam x="459" y="317" />
+<sizeparam width="177" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3075" />
-<TGConnectingPoint num="1" id="3076" />
-<TGConnectingPoint num="2" id="3077" />
-<TGConnectingPoint num="3" id="3078" />
+<TGConnectingPoint num="0" id="3117" />
+<TGConnectingPoint num="1" id="3118" />
+<TGConnectingPoint num="2" id="3119" />
+<TGConnectingPoint num="3" id="3120" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
+<actions value="msg3 = sdecrypt(msg2, PSK)" />
+<actions value="selectedDuration = msg3.data" />
 </extraparam>
 </SUBCOMPONENT>
 
-<COMPONENT type="5106" id="3122" >
-<cdparam x="323" y="377" />
-<sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<CONNECTOR type="5102" id="3130" >
+<cdparam x="386" y="101" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector from start state to Receive signal" value="null" />
+<TGConnectingPoint num="0" id="3129" />
+<P1  x="386" y="101" id="3244" />
+<P2  x="401" y="161" id="3233" />
+<AutomaticDrawing  data="true" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3128" >
+<father id="3130" num="0" />
+<cdparam x="386" y="141" />
+<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="Msg1Sent" />
-<TGConnectingPoint num="0" id="3082" />
-<TGConnectingPoint num="1" id="3083" />
-<TGConnectingPoint num="2" id="3084" />
-<TGConnectingPoint num="3" id="3085" />
-<TGConnectingPoint num="4" id="3086" />
-<TGConnectingPoint num="5" id="3087" />
-<TGConnectingPoint num="6" id="3088" />
-<TGConnectingPoint num="7" id="3089" />
-<TGConnectingPoint num="8" id="3090" />
-<TGConnectingPoint num="9" id="3091" />
-<TGConnectingPoint num="10" id="3092" />
-<TGConnectingPoint num="11" id="3093" />
-<TGConnectingPoint num="12" id="3094" />
-<TGConnectingPoint num="13" id="3095" />
-<TGConnectingPoint num="14" id="3096" />
-<TGConnectingPoint num="15" id="3097" />
-<TGConnectingPoint num="16" id="3098" />
-<TGConnectingPoint num="17" id="3099" />
-<TGConnectingPoint num="18" id="3100" />
-<TGConnectingPoint num="19" id="3101" />
-<TGConnectingPoint num="20" id="3102" />
-<TGConnectingPoint num="21" id="3103" />
-<TGConnectingPoint num="22" id="3104" />
-<TGConnectingPoint num="23" id="3105" />
-<TGConnectingPoint num="24" id="3106" />
-<TGConnectingPoint num="25" id="3107" />
-<TGConnectingPoint num="26" id="3108" />
-<TGConnectingPoint num="27" id="3109" />
-<TGConnectingPoint num="28" id="3110" />
-<TGConnectingPoint num="29" id="3111" />
-<TGConnectingPoint num="30" id="3112" />
-<TGConnectingPoint num="31" id="3113" />
-<TGConnectingPoint num="32" id="3114" />
-<TGConnectingPoint num="33" id="3115" />
-<TGConnectingPoint num="34" id="3116" />
-<TGConnectingPoint num="35" id="3117" />
-<TGConnectingPoint num="36" id="3118" />
-<TGConnectingPoint num="37" id="3119" />
-<TGConnectingPoint num="38" id="3120" />
-<TGConnectingPoint num="39" id="3121" />
-<extraparam>
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="301" id="3131" >
-<cdparam x="661" y="78" />
-<sizeparam width="251" height="35" minWidth="50" minHeight="20" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="List of all parameters of an Avatar SMD transition" value="" />
+<TGConnectingPoint num="0" id="3124" />
+<TGConnectingPoint num="1" id="3125" />
+<TGConnectingPoint num="2" id="3126" />
+<TGConnectingPoint num="3" id="3127" />
+<extraparam>
+<guard value="[ ]" />
+<afterMin value="" />
+<afterMax value="" />
+<computeMin value="" />
+<computeMax value="" />
+</extraparam>
+</SUBCOMPONENT>
+
+<CONNECTOR type="5102" id="3137" >
+<cdparam x="401" y="191" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector from Receive signal to stop state" value="null" />
+<TGConnectingPoint num="0" id="3136" />
+<P1  x="401" y="191" id="3234" />
+<P2  x="414" y="225" id="3191" />
+<AutomaticDrawing  data="true" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3135" >
+<father id="3137" num="0" />
+<cdparam x="453" y="214" />
+<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="UML Note" value="Encrypting data with the pre shared key
-" />
-<TGConnectingPoint num="0" id="3123" />
-<TGConnectingPoint num="1" id="3124" />
-<TGConnectingPoint num="2" id="3125" />
-<TGConnectingPoint num="3" id="3126" />
-<TGConnectingPoint num="4" id="3127" />
-<TGConnectingPoint num="5" id="3128" />
-<TGConnectingPoint num="6" id="3129" />
-<TGConnectingPoint num="7" id="3130" />
+<infoparam name="List of all parameters of an Avatar SMD transition" value="" />
+<TGConnectingPoint num="0" id="3131" />
+<TGConnectingPoint num="1" id="3132" />
+<TGConnectingPoint num="2" id="3133" />
+<TGConnectingPoint num="3" id="3134" />
 <extraparam>
-<Line value="Encrypting data with the pre shared key" />
+<guard value="[ ]" />
+<afterMin value="" />
+<afterMax value="" />
+<computeMin value="" />
+<computeMax value="" />
 </extraparam>
-</COMPONENT>
+</SUBCOMPONENT>
 
-<COMPONENT type="5106" id="3172" >
-<cdparam x="239" y="163" />
-<sizeparam width="172" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<COMPONENT type="5106" id="3178" >
+<cdparam x="306" y="349" />
+<sizeparam width="282" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="SendingRemoteOrder" />
-<TGConnectingPoint num="0" id="3132" />
-<TGConnectingPoint num="1" id="3133" />
-<TGConnectingPoint num="2" id="3134" />
-<TGConnectingPoint num="3" id="3135" />
-<TGConnectingPoint num="4" id="3136" />
-<TGConnectingPoint num="5" id="3137" />
-<TGConnectingPoint num="6" id="3138" />
-<TGConnectingPoint num="7" id="3139" />
-<TGConnectingPoint num="8" id="3140" />
-<TGConnectingPoint num="9" id="3141" />
-<TGConnectingPoint num="10" id="3142" />
-<TGConnectingPoint num="11" id="3143" />
-<TGConnectingPoint num="12" id="3144" />
-<TGConnectingPoint num="13" id="3145" />
-<TGConnectingPoint num="14" id="3146" />
-<TGConnectingPoint num="15" id="3147" />
-<TGConnectingPoint num="16" id="3148" />
-<TGConnectingPoint num="17" id="3149" />
-<TGConnectingPoint num="18" id="3150" />
-<TGConnectingPoint num="19" id="3151" />
-<TGConnectingPoint num="20" id="3152" />
-<TGConnectingPoint num="21" id="3153" />
-<TGConnectingPoint num="22" id="3154" />
-<TGConnectingPoint num="23" id="3155" />
-<TGConnectingPoint num="24" id="3156" />
-<TGConnectingPoint num="25" id="3157" />
-<TGConnectingPoint num="26" id="3158" />
-<TGConnectingPoint num="27" id="3159" />
-<TGConnectingPoint num="28" id="3160" />
-<TGConnectingPoint num="29" id="3161" />
-<TGConnectingPoint num="30" id="3162" />
-<TGConnectingPoint num="31" id="3163" />
-<TGConnectingPoint num="32" id="3164" />
-<TGConnectingPoint num="33" id="3165" />
-<TGConnectingPoint num="34" id="3166" />
-<TGConnectingPoint num="35" id="3167" />
-<TGConnectingPoint num="36" id="3168" />
-<TGConnectingPoint num="37" id="3169" />
-<TGConnectingPoint num="38" id="3170" />
-<TGConnectingPoint num="39" id="3171" />
-<extraparam>
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="5101" id="3174" >
-<cdparam x="365" y="447" />
+<infoparam name="state0" value="gotDecryptedOrder" />
+<TGConnectingPoint num="0" id="3138" />
+<TGConnectingPoint num="1" id="3139" />
+<TGConnectingPoint num="2" id="3140" />
+<TGConnectingPoint num="3" id="3141" />
+<TGConnectingPoint num="4" id="3142" />
+<TGConnectingPoint num="5" id="3143" />
+<TGConnectingPoint num="6" id="3144" />
+<TGConnectingPoint num="7" id="3145" />
+<TGConnectingPoint num="8" id="3146" />
+<TGConnectingPoint num="9" id="3147" />
+<TGConnectingPoint num="10" id="3148" />
+<TGConnectingPoint num="11" id="3149" />
+<TGConnectingPoint num="12" id="3150" />
+<TGConnectingPoint num="13" id="3151" />
+<TGConnectingPoint num="14" id="3152" />
+<TGConnectingPoint num="15" id="3153" />
+<TGConnectingPoint num="16" id="3154" />
+<TGConnectingPoint num="17" id="3155" />
+<TGConnectingPoint num="18" id="3156" />
+<TGConnectingPoint num="19" id="3157" />
+<TGConnectingPoint num="20" id="3158" />
+<TGConnectingPoint num="21" id="3159" />
+<TGConnectingPoint num="22" id="3160" />
+<TGConnectingPoint num="23" id="3161" />
+<TGConnectingPoint num="24" id="3162" />
+<TGConnectingPoint num="25" id="3163" />
+<TGConnectingPoint num="26" id="3164" />
+<TGConnectingPoint num="27" id="3165" />
+<TGConnectingPoint num="28" id="3166" />
+<TGConnectingPoint num="29" id="3167" />
+<TGConnectingPoint num="30" id="3168" />
+<TGConnectingPoint num="31" id="3169" />
+<TGConnectingPoint num="32" id="3170" />
+<TGConnectingPoint num="33" id="3171" />
+<TGConnectingPoint num="34" id="3172" />
+<TGConnectingPoint num="35" id="3173" />
+<TGConnectingPoint num="36" id="3174" />
+<TGConnectingPoint num="37" id="3175" />
+<TGConnectingPoint num="38" id="3176" />
+<TGConnectingPoint num="39" id="3177" />
+<extraparam>
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="5103" id="3189" >
+<cdparam x="383" y="437" />
+<sizeparam width="182" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="Send signal" value="remoteStart(selectedDuration)" />
+<TGConnectingPoint num="0" id="3179" />
+<TGConnectingPoint num="1" id="3180" />
+<TGConnectingPoint num="2" id="3181" />
+<TGConnectingPoint num="3" id="3182" />
+<TGConnectingPoint num="4" id="3183" />
+<TGConnectingPoint num="5" id="3184" />
+<TGConnectingPoint num="6" id="3185" />
+<TGConnectingPoint num="7" id="3186" />
+<TGConnectingPoint num="8" id="3187" />
+<TGConnectingPoint num="9" id="3188" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="3230" >
+<cdparam x="348" y="225" />
+<sizeparam width="133" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="state0" value="gotWirelessOrder" />
+<TGConnectingPoint num="0" id="3190" />
+<TGConnectingPoint num="1" id="3191" />
+<TGConnectingPoint num="2" id="3192" />
+<TGConnectingPoint num="3" id="3193" />
+<TGConnectingPoint num="4" id="3194" />
+<TGConnectingPoint num="5" id="3195" />
+<TGConnectingPoint num="6" id="3196" />
+<TGConnectingPoint num="7" id="3197" />
+<TGConnectingPoint num="8" id="3198" />
+<TGConnectingPoint num="9" id="3199" />
+<TGConnectingPoint num="10" id="3200" />
+<TGConnectingPoint num="11" id="3201" />
+<TGConnectingPoint num="12" id="3202" />
+<TGConnectingPoint num="13" id="3203" />
+<TGConnectingPoint num="14" id="3204" />
+<TGConnectingPoint num="15" id="3205" />
+<TGConnectingPoint num="16" id="3206" />
+<TGConnectingPoint num="17" id="3207" />
+<TGConnectingPoint num="18" id="3208" />
+<TGConnectingPoint num="19" id="3209" />
+<TGConnectingPoint num="20" id="3210" />
+<TGConnectingPoint num="21" id="3211" />
+<TGConnectingPoint num="22" id="3212" />
+<TGConnectingPoint num="23" id="3213" />
+<TGConnectingPoint num="24" id="3214" />
+<TGConnectingPoint num="25" id="3215" />
+<TGConnectingPoint num="26" id="3216" />
+<TGConnectingPoint num="27" id="3217" />
+<TGConnectingPoint num="28" id="3218" />
+<TGConnectingPoint num="29" id="3219" />
+<TGConnectingPoint num="30" id="3220" />
+<TGConnectingPoint num="31" id="3221" />
+<TGConnectingPoint num="32" id="3222" />
+<TGConnectingPoint num="33" id="3223" />
+<TGConnectingPoint num="34" id="3224" />
+<TGConnectingPoint num="35" id="3225" />
+<TGConnectingPoint num="36" id="3226" />
+<TGConnectingPoint num="37" id="3227" />
+<TGConnectingPoint num="38" id="3228" />
+<TGConnectingPoint num="39" id="3229" />
+<extraparam>
+<entryCode value="printf(&quot;Got duration from remote control :%d\n&quot;, msg2__data);" />
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="5101" id="3232" >
+<cdparam x="475" y="500" />
 <sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="stop state" value="null" />
-<TGConnectingPoint num="0" id="3173" />
+<TGConnectingPoint num="0" id="3231" />
 </COMPONENT>
 
-<COMPONENT type="5103" id="3185" >
-<cdparam x="266" y="296" />
-<sizeparam width="163" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<COMPONENT type="5104" id="3243" >
+<cdparam x="311" y="166" />
+<sizeparam width="180" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Send signal" value="wirelessChannelWrite(msg)" />
-<TGConnectingPoint num="0" id="3175" />
-<TGConnectingPoint num="1" id="3176" />
-<TGConnectingPoint num="2" id="3177" />
-<TGConnectingPoint num="3" id="3178" />
-<TGConnectingPoint num="4" id="3179" />
-<TGConnectingPoint num="5" id="3180" />
-<TGConnectingPoint num="6" id="3181" />
-<TGConnectingPoint num="7" id="3182" />
-<TGConnectingPoint num="8" id="3183" />
-<TGConnectingPoint num="9" id="3184" />
-</COMPONENT>
-
-<COMPONENT type="5100" id="3187" >
-<cdparam x="302" y="99" />
+<infoparam name="Receive signal" value="wirelessChannelRead(msg2)" />
+<TGConnectingPoint num="0" id="3233" />
+<TGConnectingPoint num="1" id="3234" />
+<TGConnectingPoint num="2" id="3235" />
+<TGConnectingPoint num="3" id="3236" />
+<TGConnectingPoint num="4" id="3237" />
+<TGConnectingPoint num="5" id="3238" />
+<TGConnectingPoint num="6" id="3239" />
+<TGConnectingPoint num="7" id="3240" />
+<TGConnectingPoint num="8" id="3241" />
+<TGConnectingPoint num="9" id="3242" />
+</COMPONENT>
+
+<COMPONENT type="5100" id="3245" >
+<cdparam x="379" y="81" />
 <sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="start state" value="null" />
-<TGConnectingPoint num="0" id="3186" />
+<TGConnectingPoint num="0" id="3244" />
 </COMPONENT>
 
 
 </AVATARStateMachineDiagramPanel>
 
-<AVATARStateMachineDiagramPanel name="MicroWaveOven" minX="10" maxX="1400" minY="10" maxY="900" >
-<CONNECTOR type="5102" id="3194" >
-<cdparam x="407" y="70" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from start state to state0" value="null" />
-<TGConnectingPoint num="0" id="3193" />
-<P1  x="407" y="70" id="3236" />
-<P2  x="451" y="106" id="3196" />
+<AVATARStateMachineDiagramPanel name="Door" minX="10" maxX="1400" minY="10" maxY="900" >
+<CONNECTOR type="5102" id="3252" >
+<cdparam x="407" y="209" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector" value="null" />
+<TGConnectingPoint num="0" id="3251" />
+<P1  x="407" y="209" id="3340" />
+<P2  x="407" y="290" id="3288" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3192" >
-<father id="3194" num="0" />
-<cdparam x="444" y="75" />
-<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3250" >
+<father id="3252" num="0" />
+<cdparam x="407" y="249" />
+<sizeparam width="47" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3188" />
-<TGConnectingPoint num="1" id="3189" />
-<TGConnectingPoint num="2" id="3190" />
-<TGConnectingPoint num="3" id="3191" />
+<TGConnectingPoint num="0" id="3246" />
+<TGConnectingPoint num="1" id="3247" />
+<TGConnectingPoint num="2" id="3248" />
+<TGConnectingPoint num="3" id="3249" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
+<actions value="openM()" />
 </extraparam>
 </SUBCOMPONENT>
 
-<COMPONENT type="5106" id="3235" >
-<cdparam x="396" y="106" />
-<sizeparam width="111" height="42" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="Running" />
-<TGConnectingPoint num="0" id="3195" />
-<TGConnectingPoint num="1" id="3196" />
-<TGConnectingPoint num="2" id="3197" />
-<TGConnectingPoint num="3" id="3198" />
-<TGConnectingPoint num="4" id="3199" />
-<TGConnectingPoint num="5" id="3200" />
-<TGConnectingPoint num="6" id="3201" />
-<TGConnectingPoint num="7" id="3202" />
-<TGConnectingPoint num="8" id="3203" />
-<TGConnectingPoint num="9" id="3204" />
-<TGConnectingPoint num="10" id="3205" />
-<TGConnectingPoint num="11" id="3206" />
-<TGConnectingPoint num="12" id="3207" />
-<TGConnectingPoint num="13" id="3208" />
-<TGConnectingPoint num="14" id="3209" />
-<TGConnectingPoint num="15" id="3210" />
-<TGConnectingPoint num="16" id="3211" />
-<TGConnectingPoint num="17" id="3212" />
-<TGConnectingPoint num="18" id="3213" />
-<TGConnectingPoint num="19" id="3214" />
-<TGConnectingPoint num="20" id="3215" />
-<TGConnectingPoint num="21" id="3216" />
-<TGConnectingPoint num="22" id="3217" />
-<TGConnectingPoint num="23" id="3218" />
-<TGConnectingPoint num="24" id="3219" />
-<TGConnectingPoint num="25" id="3220" />
-<TGConnectingPoint num="26" id="3221" />
-<TGConnectingPoint num="27" id="3222" />
-<TGConnectingPoint num="28" id="3223" />
-<TGConnectingPoint num="29" id="3224" />
-<TGConnectingPoint num="30" id="3225" />
-<TGConnectingPoint num="31" id="3226" />
-<TGConnectingPoint num="32" id="3227" />
-<TGConnectingPoint num="33" id="3228" />
-<TGConnectingPoint num="34" id="3229" />
-<TGConnectingPoint num="35" id="3230" />
-<TGConnectingPoint num="36" id="3231" />
-<TGConnectingPoint num="37" id="3232" />
-<TGConnectingPoint num="38" id="3233" />
-<TGConnectingPoint num="39" id="3234" />
-<extraparam>
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="5100" id="3237" >
-<cdparam x="400" y="50" />
-<sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="start state" value="null" />
-<TGConnectingPoint num="0" id="3236" />
-</COMPONENT>
-
-
-</AVATARStateMachineDiagramPanel>
-
-<AVATARStateMachineDiagramPanel name="Bell" minX="10" maxX="1400" minY="10" maxY="900" >
-<CONNECTOR type="5102" id="3244" >
-<cdparam x="419" y="209" />
+<CONNECTOR type="5102" id="3259" >
+<cdparam x="407" y="300" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3243" />
-<P1  x="419" y="209" id="3314" />
-<P2  x="419" y="313" id="3273" />
+<infoparam name="connector from state0 to Send signal" value="null" />
+<TGConnectingPoint num="0" id="3258" />
+<P1  x="407" y="340" id="3293" />
+<P2  x="407" y="374" id="3328" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3242" >
-<father id="3244" num="0" />
-<cdparam x="429" y="249" />
-<sizeparam width="47" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3257" >
+<father id="3259" num="0" />
+<cdparam x="414" y="365" />
+<sizeparam width="59" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3238" />
-<TGConnectingPoint num="1" id="3239" />
-<TGConnectingPoint num="2" id="3240" />
-<TGConnectingPoint num="3" id="3241" />
+<TGConnectingPoint num="0" id="3253" />
+<TGConnectingPoint num="1" id="3254" />
+<TGConnectingPoint num="2" id="3255" />
+<TGConnectingPoint num="3" id="3256" />
 <extraparam>
 <guard value="[ ]" />
-<afterMin value="" />
-<afterMax value="" />
+<afterMin value="2" />
+<afterMax value="3" />
 <computeMin value="" />
 <computeMax value="" />
-<actions value="runBell()" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3257" >
-<cdparam x="419" y="209" />
+<CONNECTOR type="5102" id="3272" >
+<cdparam x="407" y="277" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3253" />
-<TGConnectingPoint num="1" id="3254" />
-<TGConnectingPoint num="2" id="3255" />
-<TGConnectingPoint num="3" id="3256" />
-<P1  x="419" y="363" id="3278" />
-<P2  x="369" y="123" id="3327" />
-<Point x="412" y="419" />
-<Point x="332" y="419" />
-<Point x="332" y="123" />
+<TGConnectingPoint num="0" id="3268" />
+<TGConnectingPoint num="1" id="3269" />
+<TGConnectingPoint num="2" id="3270" />
+<TGConnectingPoint num="3" id="3271" />
+<P1  x="407" y="404" id="3329" />
+<P2  x="357" y="125" id="3353" />
+<Point x="300" y="404" />
+<Point x="300" y="278" />
+<Point x="300" y="125" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3245" >
-<father id="3257" num="0" />
-<cdparam x="412" y="419" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3260" >
+<father id="3272" num="0" />
+<cdparam x="300" y="404" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3246" >
-<father id="3257" num="1" />
-<cdparam x="332" y="419" />
+<SUBCOMPONENT type="-1" id="3261" >
+<father id="3272" num="1" />
+<cdparam x="300" y="278" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3247" >
-<father id="3257" num="2" />
-<cdparam x="332" y="123" />
+<SUBCOMPONENT type="-1" id="3262" >
+<father id="3272" num="2" />
+<cdparam x="300" y="125" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3252" >
-<father id="3257" num="3" />
-<cdparam x="430" y="402" />
-<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<SUBCOMPONENT type="-1" id="3267" >
+<father id="3272" num="3" />
+<cdparam x="246" y="301" />
+<sizeparam width="47" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3248" />
-<TGConnectingPoint num="1" id="3249" />
-<TGConnectingPoint num="2" id="3250" />
-<TGConnectingPoint num="3" id="3251" />
+<TGConnectingPoint num="0" id="3263" />
+<TGConnectingPoint num="1" id="3264" />
+<TGConnectingPoint num="2" id="3265" />
+<TGConnectingPoint num="3" id="3266" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
+<actions value="closeM()" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3264" >
-<cdparam x="420" y="151" />
+<CONNECTOR type="5102" id="3279" >
+<cdparam x="407" y="150" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state0 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3263" />
-<P1  x="419" y="148" id="3330" />
-<P2  x="419" y="179" id="3313" />
+<TGConnectingPoint num="0" id="3278" />
+<P1  x="407" y="150" id="3356" />
+<P2  x="407" y="179" id="3339" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3262" >
-<father id="3264" num="0" />
-<cdparam x="420" y="191" />
-<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3277" >
+<father id="3279" num="0" />
+<cdparam x="412" y="172" />
+<sizeparam width="59" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3258" />
-<TGConnectingPoint num="1" id="3259" />
-<TGConnectingPoint num="2" id="3260" />
-<TGConnectingPoint num="3" id="3261" />
+<TGConnectingPoint num="0" id="3273" />
+<TGConnectingPoint num="1" id="3274" />
+<TGConnectingPoint num="2" id="3275" />
+<TGConnectingPoint num="3" id="3276" />
 <extraparam>
 <guard value="[ ]" />
-<afterMin value="" />
-<afterMax value="" />
+<afterMin value="2" />
+<afterMax value="3" />
 <computeMin value="" />
 <computeMax value="" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3271" >
+<CONNECTOR type="5102" id="3286" >
 <cdparam x="407" y="70" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from start state to state0" value="null" />
-<TGConnectingPoint num="0" id="3270" />
-<P1  x="407" y="70" id="3365" />
-<P2  x="419" y="98" id="3325" />
+<TGConnectingPoint num="0" id="3285" />
+<P1  x="407" y="70" id="3391" />
+<P2  x="407" y="100" id="3351" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3269" >
-<father id="3271" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3284" >
+<father id="3286" num="0" />
 <cdparam x="407" y="110" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3265" />
-<TGConnectingPoint num="1" id="3266" />
-<TGConnectingPoint num="2" id="3267" />
-<TGConnectingPoint num="3" id="3268" />
+<TGConnectingPoint num="0" id="3280" />
+<TGConnectingPoint num="1" id="3281" />
+<TGConnectingPoint num="2" id="3282" />
+<TGConnectingPoint num="3" id="3283" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -6697,226 +6745,292 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<COMPONENT type="5106" id="3312" >
-<cdparam x="369" y="313" />
+<COMPONENT type="5106" id="3327" >
+<cdparam x="357" y="290" />
 <sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="Ringing" />
-<TGConnectingPoint num="0" id="3272" />
-<TGConnectingPoint num="1" id="3273" />
-<TGConnectingPoint num="2" id="3274" />
-<TGConnectingPoint num="3" id="3275" />
-<TGConnectingPoint num="4" id="3276" />
-<TGConnectingPoint num="5" id="3277" />
-<TGConnectingPoint num="6" id="3278" />
-<TGConnectingPoint num="7" id="3279" />
-<TGConnectingPoint num="8" id="3280" />
-<TGConnectingPoint num="9" id="3281" />
-<TGConnectingPoint num="10" id="3282" />
-<TGConnectingPoint num="11" id="3283" />
-<TGConnectingPoint num="12" id="3284" />
-<TGConnectingPoint num="13" id="3285" />
-<TGConnectingPoint num="14" id="3286" />
-<TGConnectingPoint num="15" id="3287" />
-<TGConnectingPoint num="16" id="3288" />
-<TGConnectingPoint num="17" id="3289" />
-<TGConnectingPoint num="18" id="3290" />
-<TGConnectingPoint num="19" id="3291" />
-<TGConnectingPoint num="20" id="3292" />
-<TGConnectingPoint num="21" id="3293" />
-<TGConnectingPoint num="22" id="3294" />
-<TGConnectingPoint num="23" id="3295" />
-<TGConnectingPoint num="24" id="3296" />
-<TGConnectingPoint num="25" id="3297" />
-<TGConnectingPoint num="26" id="3298" />
-<TGConnectingPoint num="27" id="3299" />
-<TGConnectingPoint num="28" id="3300" />
-<TGConnectingPoint num="29" id="3301" />
-<TGConnectingPoint num="30" id="3302" />
-<TGConnectingPoint num="31" id="3303" />
-<TGConnectingPoint num="32" id="3304" />
-<TGConnectingPoint num="33" id="3305" />
-<TGConnectingPoint num="34" id="3306" />
-<TGConnectingPoint num="35" id="3307" />
-<TGConnectingPoint num="36" id="3308" />
-<TGConnectingPoint num="37" id="3309" />
-<TGConnectingPoint num="38" id="3310" />
-<TGConnectingPoint num="39" id="3311" />
+<infoparam name="state0" value="Opened" />
+<TGConnectingPoint num="0" id="3287" />
+<TGConnectingPoint num="1" id="3288" />
+<TGConnectingPoint num="2" id="3289" />
+<TGConnectingPoint num="3" id="3290" />
+<TGConnectingPoint num="4" id="3291" />
+<TGConnectingPoint num="5" id="3292" />
+<TGConnectingPoint num="6" id="3293" />
+<TGConnectingPoint num="7" id="3294" />
+<TGConnectingPoint num="8" id="3295" />
+<TGConnectingPoint num="9" id="3296" />
+<TGConnectingPoint num="10" id="3297" />
+<TGConnectingPoint num="11" id="3298" />
+<TGConnectingPoint num="12" id="3299" />
+<TGConnectingPoint num="13" id="3300" />
+<TGConnectingPoint num="14" id="3301" />
+<TGConnectingPoint num="15" id="3302" />
+<TGConnectingPoint num="16" id="3303" />
+<TGConnectingPoint num="17" id="3304" />
+<TGConnectingPoint num="18" id="3305" />
+<TGConnectingPoint num="19" id="3306" />
+<TGConnectingPoint num="20" id="3307" />
+<TGConnectingPoint num="21" id="3308" />
+<TGConnectingPoint num="22" id="3309" />
+<TGConnectingPoint num="23" id="3310" />
+<TGConnectingPoint num="24" id="3311" />
+<TGConnectingPoint num="25" id="3312" />
+<TGConnectingPoint num="26" id="3313" />
+<TGConnectingPoint num="27" id="3314" />
+<TGConnectingPoint num="28" id="3315" />
+<TGConnectingPoint num="29" id="3316" />
+<TGConnectingPoint num="30" id="3317" />
+<TGConnectingPoint num="31" id="3318" />
+<TGConnectingPoint num="32" id="3319" />
+<TGConnectingPoint num="33" id="3320" />
+<TGConnectingPoint num="34" id="3321" />
+<TGConnectingPoint num="35" id="3322" />
+<TGConnectingPoint num="36" id="3323" />
+<TGConnectingPoint num="37" id="3324" />
+<TGConnectingPoint num="38" id="3325" />
+<TGConnectingPoint num="39" id="3326" />
 <extraparam>
-<entryCode value="" />
-<entryCode value="printf(&quot;\nDRING DRING DRING !!!!\n\n&quot;);" />
+<entryCode value="printf(&quot;Door is opened!!!\n&quot;);" />
 </extraparam>
 </COMPONENT>
 
-<COMPONENT type="5104" id="3323" >
-<cdparam x="395" y="184" />
-<sizeparam width="48" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<COMPONENT type="5103" id="3338" >
+<cdparam x="380" y="379" />
+<sizeparam width="55" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Send signal" value="ring()" />
-<TGConnectingPoint num="0" id="3313" />
-<TGConnectingPoint num="1" id="3314" />
-<TGConnectingPoint num="2" id="3315" />
-<TGConnectingPoint num="3" id="3316" />
-<TGConnectingPoint num="4" id="3317" />
-<TGConnectingPoint num="5" id="3318" />
-<TGConnectingPoint num="6" id="3319" />
-<TGConnectingPoint num="7" id="3320" />
-<TGConnectingPoint num="8" id="3321" />
-<TGConnectingPoint num="9" id="3322" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="3364" >
-<cdparam x="369" y="98" />
+<infoparam name="Send signal" value="closed()" />
+<TGConnectingPoint num="0" id="3328" />
+<TGConnectingPoint num="1" id="3329" />
+<TGConnectingPoint num="2" id="3330" />
+<TGConnectingPoint num="3" id="3331" />
+<TGConnectingPoint num="4" id="3332" />
+<TGConnectingPoint num="5" id="3333" />
+<TGConnectingPoint num="6" id="3334" />
+<TGConnectingPoint num="7" id="3335" />
+<TGConnectingPoint num="8" id="3336" />
+<TGConnectingPoint num="9" id="3337" />
+</COMPONENT>
+
+<COMPONENT type="5103" id="3349" >
+<cdparam x="384" y="184" />
+<sizeparam width="47" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="Send signal" value="open()" />
+<TGConnectingPoint num="0" id="3339" />
+<TGConnectingPoint num="1" id="3340" />
+<TGConnectingPoint num="2" id="3341" />
+<TGConnectingPoint num="3" id="3342" />
+<TGConnectingPoint num="4" id="3343" />
+<TGConnectingPoint num="5" id="3344" />
+<TGConnectingPoint num="6" id="3345" />
+<TGConnectingPoint num="7" id="3346" />
+<TGConnectingPoint num="8" id="3347" />
+<TGConnectingPoint num="9" id="3348" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="3390" >
+<cdparam x="357" y="100" />
 <sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="Active" />
-<TGConnectingPoint num="0" id="3324" />
-<TGConnectingPoint num="1" id="3325" />
-<TGConnectingPoint num="2" id="3326" />
-<TGConnectingPoint num="3" id="3327" />
-<TGConnectingPoint num="4" id="3328" />
-<TGConnectingPoint num="5" id="3329" />
-<TGConnectingPoint num="6" id="3330" />
-<TGConnectingPoint num="7" id="3331" />
-<TGConnectingPoint num="8" id="3332" />
-<TGConnectingPoint num="9" id="3333" />
-<TGConnectingPoint num="10" id="3334" />
-<TGConnectingPoint num="11" id="3335" />
-<TGConnectingPoint num="12" id="3336" />
-<TGConnectingPoint num="13" id="3337" />
-<TGConnectingPoint num="14" id="3338" />
-<TGConnectingPoint num="15" id="3339" />
-<TGConnectingPoint num="16" id="3340" />
-<TGConnectingPoint num="17" id="3341" />
-<TGConnectingPoint num="18" id="3342" />
-<TGConnectingPoint num="19" id="3343" />
-<TGConnectingPoint num="20" id="3344" />
-<TGConnectingPoint num="21" id="3345" />
-<TGConnectingPoint num="22" id="3346" />
-<TGConnectingPoint num="23" id="3347" />
-<TGConnectingPoint num="24" id="3348" />
-<TGConnectingPoint num="25" id="3349" />
-<TGConnectingPoint num="26" id="3350" />
-<TGConnectingPoint num="27" id="3351" />
-<TGConnectingPoint num="28" id="3352" />
-<TGConnectingPoint num="29" id="3353" />
-<TGConnectingPoint num="30" id="3354" />
-<TGConnectingPoint num="31" id="3355" />
-<TGConnectingPoint num="32" id="3356" />
-<TGConnectingPoint num="33" id="3357" />
-<TGConnectingPoint num="34" id="3358" />
-<TGConnectingPoint num="35" id="3359" />
-<TGConnectingPoint num="36" id="3360" />
-<TGConnectingPoint num="37" id="3361" />
-<TGConnectingPoint num="38" id="3362" />
-<TGConnectingPoint num="39" id="3363" />
-<extraparam>
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="5100" id="3366" >
+<infoparam name="state0" value="IDLE" />
+<TGConnectingPoint num="0" id="3350" />
+<TGConnectingPoint num="1" id="3351" />
+<TGConnectingPoint num="2" id="3352" />
+<TGConnectingPoint num="3" id="3353" />
+<TGConnectingPoint num="4" id="3354" />
+<TGConnectingPoint num="5" id="3355" />
+<TGConnectingPoint num="6" id="3356" />
+<TGConnectingPoint num="7" id="3357" />
+<TGConnectingPoint num="8" id="3358" />
+<TGConnectingPoint num="9" id="3359" />
+<TGConnectingPoint num="10" id="3360" />
+<TGConnectingPoint num="11" id="3361" />
+<TGConnectingPoint num="12" id="3362" />
+<TGConnectingPoint num="13" id="3363" />
+<TGConnectingPoint num="14" id="3364" />
+<TGConnectingPoint num="15" id="3365" />
+<TGConnectingPoint num="16" id="3366" />
+<TGConnectingPoint num="17" id="3367" />
+<TGConnectingPoint num="18" id="3368" />
+<TGConnectingPoint num="19" id="3369" />
+<TGConnectingPoint num="20" id="3370" />
+<TGConnectingPoint num="21" id="3371" />
+<TGConnectingPoint num="22" id="3372" />
+<TGConnectingPoint num="23" id="3373" />
+<TGConnectingPoint num="24" id="3374" />
+<TGConnectingPoint num="25" id="3375" />
+<TGConnectingPoint num="26" id="3376" />
+<TGConnectingPoint num="27" id="3377" />
+<TGConnectingPoint num="28" id="3378" />
+<TGConnectingPoint num="29" id="3379" />
+<TGConnectingPoint num="30" id="3380" />
+<TGConnectingPoint num="31" id="3381" />
+<TGConnectingPoint num="32" id="3382" />
+<TGConnectingPoint num="33" id="3383" />
+<TGConnectingPoint num="34" id="3384" />
+<TGConnectingPoint num="35" id="3385" />
+<TGConnectingPoint num="36" id="3386" />
+<TGConnectingPoint num="37" id="3387" />
+<TGConnectingPoint num="38" id="3388" />
+<TGConnectingPoint num="39" id="3389" />
+<extraparam>
+<entryCode value="printf(&quot;Door is closed\n&quot;);" />
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="5100" id="3392" >
 <cdparam x="400" y="50" />
 <sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="start state" value="null" />
-<TGConnectingPoint num="0" id="3365" />
+<TGConnectingPoint num="0" id="3391" />
 </COMPONENT>
 
 
 </AVATARStateMachineDiagramPanel>
 
-<AVATARStateMachineDiagramPanel name="ControlPanel" minX="10" maxX="1400" minY="10" maxY="900" >
-<CONNECTOR type="5102" id="3379" >
-<cdparam x="504" y="232" />
+<AVATARStateMachineDiagramPanel name="Magnetron" minX="10" maxX="1400" minY="10" maxY="900" >
+<CONNECTOR type="5102" id="3405" >
+<cdparam x="407" y="380" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3375" />
-<TGConnectingPoint num="1" id="3376" />
-<TGConnectingPoint num="2" id="3377" />
-<TGConnectingPoint num="3" id="3378" />
-<P1  x="504" y="232" id="3438" />
-<P2  x="454" y="123" id="3399" />
-<Point x="503" y="254" />
-<Point x="425" y="254" />
-<Point x="426" y="123" />
+<TGConnectingPoint num="0" id="3401" />
+<TGConnectingPoint num="1" id="3402" />
+<TGConnectingPoint num="2" id="3403" />
+<TGConnectingPoint num="3" id="3404" />
+<P1  x="407" y="310" id="3435" />
+<P2  x="365" y="113" id="3502" />
+<Point x="407" y="327" />
+<Point x="323" y="327" />
+<Point x="323" y="113" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3367" >
-<father id="3379" num="0" />
-<cdparam x="503" y="254" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3393" >
+<father id="3405" num="0" />
+<cdparam x="407" y="327" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3368" >
-<father id="3379" num="1" />
-<cdparam x="425" y="254" />
+<SUBCOMPONENT type="-1" id="3394" >
+<father id="3405" num="1" />
+<cdparam x="323" y="327" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3369" >
-<father id="3379" num="2" />
-<cdparam x="426" y="123" />
+<SUBCOMPONENT type="-1" id="3395" >
+<father id="3405" num="2" />
+<cdparam x="323" y="113" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="point " value="null" />
+<infoparam name="point " value="null" />
+</SUBCOMPONENT>
+<SUBCOMPONENT type="-1" id="3400" >
+<father id="3405" num="3" />
+<cdparam x="418" y="343" />
+<sizeparam width="29" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="List of all parameters of an Avatar SMD transition" value="" />
+<TGConnectingPoint num="0" id="3396" />
+<TGConnectingPoint num="1" id="3397" />
+<TGConnectingPoint num="2" id="3398" />
+<TGConnectingPoint num="3" id="3399" />
+<extraparam>
+<guard value="[ ]" />
+<afterMin value="" />
+<afterMax value="" />
+<computeMin value="" />
+<computeMax value="" />
+<actions value="OFF()" />
+</extraparam>
+</SUBCOMPONENT>
+
+<CONNECTOR type="5102" id="3412" >
+<cdparam x="411" y="243" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector from state1 to Send signal" value="null" />
+<TGConnectingPoint num="0" id="3411" />
+<P1  x="408" y="242" id="3451" />
+<P2  x="407" y="280" id="3434" />
+<AutomaticDrawing  data="true" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3410" >
+<father id="3412" num="0" />
+<cdparam x="411" y="283" />
+<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="List of all parameters of an Avatar SMD transition" value="" />
+<TGConnectingPoint num="0" id="3406" />
+<TGConnectingPoint num="1" id="3407" />
+<TGConnectingPoint num="2" id="3408" />
+<TGConnectingPoint num="3" id="3409" />
+<extraparam>
+<guard value="[ ]" />
+<afterMin value="" />
+<afterMax value="" />
+<computeMin value="" />
+<computeMax value="" />
+</extraparam>
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3374" >
-<father id="3379" num="3" />
-<cdparam x="465" y="275" />
-<sizeparam width="100" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+
+<CONNECTOR type="5102" id="3419" >
+<cdparam x="398" y="183" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector from Send signal to state1" value="null" />
+<TGConnectingPoint num="0" id="3418" />
+<P1  x="407" y="183" id="3487" />
+<P2  x="408" y="202" id="3446" />
+<AutomaticDrawing  data="true" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3417" >
+<father id="3419" num="0" />
+<cdparam x="417" y="195" />
+<sizeparam width="26" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3370" />
-<TGConnectingPoint num="1" id="3371" />
-<TGConnectingPoint num="2" id="3372" />
-<TGConnectingPoint num="3" id="3373" />
+<TGConnectingPoint num="0" id="3413" />
+<TGConnectingPoint num="1" id="3414" />
+<TGConnectingPoint num="2" id="3415" />
+<TGConnectingPoint num="3" id="3416" />
 <extraparam>
-<guard value="[  ]" />
+<guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
+<actions value="ON()" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3388" >
-<cdparam x="504" y="148" />
+<CONNECTOR type="5102" id="3426" >
+<cdparam x="393" y="131" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state0 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3386" />
-<TGConnectingPoint num="1" id="3387" />
-<P1  x="504" y="148" id="3402" />
-<P2  x="504" y="202" id="3437" />
-<Point x="504" y="175" />
+<TGConnectingPoint num="0" id="3425" />
+<P1  x="407" y="131" id="3505" />
+<P2  x="407" y="153" id="3486" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3380" >
-<father id="3388" num="0" />
-<cdparam x="504" y="175" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="point " value="null" />
-</SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3385" >
-<father id="3388" num="1" />
-<cdparam x="504" y="188" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3424" >
+<father id="3426" num="0" />
+<cdparam x="393" y="171" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3381" />
-<TGConnectingPoint num="1" id="3382" />
-<TGConnectingPoint num="2" id="3383" />
-<TGConnectingPoint num="3" id="3384" />
+<TGConnectingPoint num="0" id="3420" />
+<TGConnectingPoint num="1" id="3421" />
+<TGConnectingPoint num="2" id="3422" />
+<TGConnectingPoint num="3" id="3423" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -6926,25 +7040,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3395" >
-<cdparam x="385" y="75" />
+<CONNECTOR type="5102" id="3433" >
+<cdparam x="407" y="70" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from start state to state0" value="null" />
-<TGConnectingPoint num="0" id="3394" />
-<P1  x="481" y="74" id="3448" />
-<P2  x="504" y="98" id="3397" />
+<TGConnectingPoint num="0" id="3432" />
+<P1  x="407" y="70" id="3497" />
+<P2  x="407" y="96" id="3500" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3393" >
-<father id="3395" num="0" />
-<cdparam x="385" y="115" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3431" >
+<father id="3433" num="0" />
+<cdparam x="407" y="110" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3389" />
-<TGConnectingPoint num="1" id="3390" />
-<TGConnectingPoint num="2" id="3391" />
-<TGConnectingPoint num="3" id="3392" />
+<TGConnectingPoint num="0" id="3427" />
+<TGConnectingPoint num="1" id="3428" />
+<TGConnectingPoint num="2" id="3429" />
+<TGConnectingPoint num="3" id="3430" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -6954,106 +7068,176 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<COMPONENT type="5106" id="3436" >
-<cdparam x="454" y="98" />
-<sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<COMPONENT type="5104" id="3444" >
+<cdparam x="377" y="285" />
+<sizeparam width="61" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="Active" />
-<TGConnectingPoint num="0" id="3396" />
-<TGConnectingPoint num="1" id="3397" />
-<TGConnectingPoint num="2" id="3398" />
-<TGConnectingPoint num="3" id="3399" />
-<TGConnectingPoint num="4" id="3400" />
-<TGConnectingPoint num="5" id="3401" />
-<TGConnectingPoint num="6" id="3402" />
-<TGConnectingPoint num="7" id="3403" />
-<TGConnectingPoint num="8" id="3404" />
-<TGConnectingPoint num="9" id="3405" />
-<TGConnectingPoint num="10" id="3406" />
-<TGConnectingPoint num="11" id="3407" />
-<TGConnectingPoint num="12" id="3408" />
-<TGConnectingPoint num="13" id="3409" />
-<TGConnectingPoint num="14" id="3410" />
-<TGConnectingPoint num="15" id="3411" />
-<TGConnectingPoint num="16" id="3412" />
-<TGConnectingPoint num="17" id="3413" />
-<TGConnectingPoint num="18" id="3414" />
-<TGConnectingPoint num="19" id="3415" />
-<TGConnectingPoint num="20" id="3416" />
-<TGConnectingPoint num="21" id="3417" />
-<TGConnectingPoint num="22" id="3418" />
-<TGConnectingPoint num="23" id="3419" />
-<TGConnectingPoint num="24" id="3420" />
-<TGConnectingPoint num="25" id="3421" />
-<TGConnectingPoint num="26" id="3422" />
-<TGConnectingPoint num="27" id="3423" />
-<TGConnectingPoint num="28" id="3424" />
-<TGConnectingPoint num="29" id="3425" />
-<TGConnectingPoint num="30" id="3426" />
-<TGConnectingPoint num="31" id="3427" />
-<TGConnectingPoint num="32" id="3428" />
-<TGConnectingPoint num="33" id="3429" />
-<TGConnectingPoint num="34" id="3430" />
-<TGConnectingPoint num="35" id="3431" />
-<TGConnectingPoint num="36" id="3432" />
-<TGConnectingPoint num="37" id="3433" />
-<TGConnectingPoint num="38" id="3434" />
-<TGConnectingPoint num="39" id="3435" />
-<extraparam>
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="5103" id="3447" >
-<cdparam x="440" y="207" />
-<sizeparam width="128" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="Send signal" value="stopM()" />
+<TGConnectingPoint num="0" id="3434" />
+<TGConnectingPoint num="1" id="3435" />
+<TGConnectingPoint num="2" id="3436" />
+<TGConnectingPoint num="3" id="3437" />
+<TGConnectingPoint num="4" id="3438" />
+<TGConnectingPoint num="5" id="3439" />
+<TGConnectingPoint num="6" id="3440" />
+<TGConnectingPoint num="7" id="3441" />
+<TGConnectingPoint num="8" id="3442" />
+<TGConnectingPoint num="9" id="3443" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="3485" >
+<cdparam x="373" y="202" />
+<sizeparam width="71" height="40" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Send signal" value="startButton(duration)" />
-<TGConnectingPoint num="0" id="3437" />
-<TGConnectingPoint num="1" id="3438" />
-<TGConnectingPoint num="2" id="3439" />
-<TGConnectingPoint num="3" id="3440" />
-<TGConnectingPoint num="4" id="3441" />
-<TGConnectingPoint num="5" id="3442" />
-<TGConnectingPoint num="6" id="3443" />
-<TGConnectingPoint num="7" id="3444" />
-<TGConnectingPoint num="8" id="3445" />
-<TGConnectingPoint num="9" id="3446" />
-</COMPONENT>
-
-<COMPONENT type="5100" id="3449" >
-<cdparam x="474" y="54" />
+<infoparam name="state1" value="Running" />
+<TGConnectingPoint num="0" id="3445" />
+<TGConnectingPoint num="1" id="3446" />
+<TGConnectingPoint num="2" id="3447" />
+<TGConnectingPoint num="3" id="3448" />
+<TGConnectingPoint num="4" id="3449" />
+<TGConnectingPoint num="5" id="3450" />
+<TGConnectingPoint num="6" id="3451" />
+<TGConnectingPoint num="7" id="3452" />
+<TGConnectingPoint num="8" id="3453" />
+<TGConnectingPoint num="9" id="3454" />
+<TGConnectingPoint num="10" id="3455" />
+<TGConnectingPoint num="11" id="3456" />
+<TGConnectingPoint num="12" id="3457" />
+<TGConnectingPoint num="13" id="3458" />
+<TGConnectingPoint num="14" id="3459" />
+<TGConnectingPoint num="15" id="3460" />
+<TGConnectingPoint num="16" id="3461" />
+<TGConnectingPoint num="17" id="3462" />
+<TGConnectingPoint num="18" id="3463" />
+<TGConnectingPoint num="19" id="3464" />
+<TGConnectingPoint num="20" id="3465" />
+<TGConnectingPoint num="21" id="3466" />
+<TGConnectingPoint num="22" id="3467" />
+<TGConnectingPoint num="23" id="3468" />
+<TGConnectingPoint num="24" id="3469" />
+<TGConnectingPoint num="25" id="3470" />
+<TGConnectingPoint num="26" id="3471" />
+<TGConnectingPoint num="27" id="3472" />
+<TGConnectingPoint num="28" id="3473" />
+<TGConnectingPoint num="29" id="3474" />
+<TGConnectingPoint num="30" id="3475" />
+<TGConnectingPoint num="31" id="3476" />
+<TGConnectingPoint num="32" id="3477" />
+<TGConnectingPoint num="33" id="3478" />
+<TGConnectingPoint num="34" id="3479" />
+<TGConnectingPoint num="35" id="3480" />
+<TGConnectingPoint num="36" id="3481" />
+<TGConnectingPoint num="37" id="3482" />
+<TGConnectingPoint num="38" id="3483" />
+<TGConnectingPoint num="39" id="3484" />
+<extraparam>
+<entryCode value="printf(&quot;DANGER: Magnetron is ON\n&quot;);" />
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="5104" id="3496" >
+<cdparam x="376" y="158" />
+<sizeparam width="62" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="Send signal" value="startM()" />
+<TGConnectingPoint num="0" id="3486" />
+<TGConnectingPoint num="1" id="3487" />
+<TGConnectingPoint num="2" id="3488" />
+<TGConnectingPoint num="3" id="3489" />
+<TGConnectingPoint num="4" id="3490" />
+<TGConnectingPoint num="5" id="3491" />
+<TGConnectingPoint num="6" id="3492" />
+<TGConnectingPoint num="7" id="3493" />
+<TGConnectingPoint num="8" id="3494" />
+<TGConnectingPoint num="9" id="3495" />
+</COMPONENT>
+
+<COMPONENT type="5100" id="3498" >
+<cdparam x="400" y="50" />
 <sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="start state" value="null" />
-<TGConnectingPoint num="0" id="3448" />
+<TGConnectingPoint num="0" id="3497" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="3539" >
+<cdparam x="365" y="96" />
+<sizeparam width="84" height="35" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<hidden value="false" />
+<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
+<infoparam name="state0" value="WaitForStart" />
+<TGConnectingPoint num="0" id="3499" />
+<TGConnectingPoint num="1" id="3500" />
+<TGConnectingPoint num="2" id="3501" />
+<TGConnectingPoint num="3" id="3502" />
+<TGConnectingPoint num="4" id="3503" />
+<TGConnectingPoint num="5" id="3504" />
+<TGConnectingPoint num="6" id="3505" />
+<TGConnectingPoint num="7" id="3506" />
+<TGConnectingPoint num="8" id="3507" />
+<TGConnectingPoint num="9" id="3508" />
+<TGConnectingPoint num="10" id="3509" />
+<TGConnectingPoint num="11" id="3510" />
+<TGConnectingPoint num="12" id="3511" />
+<TGConnectingPoint num="13" id="3512" />
+<TGConnectingPoint num="14" id="3513" />
+<TGConnectingPoint num="15" id="3514" />
+<TGConnectingPoint num="16" id="3515" />
+<TGConnectingPoint num="17" id="3516" />
+<TGConnectingPoint num="18" id="3517" />
+<TGConnectingPoint num="19" id="3518" />
+<TGConnectingPoint num="20" id="3519" />
+<TGConnectingPoint num="21" id="3520" />
+<TGConnectingPoint num="22" id="3521" />
+<TGConnectingPoint num="23" id="3522" />
+<TGConnectingPoint num="24" id="3523" />
+<TGConnectingPoint num="25" id="3524" />
+<TGConnectingPoint num="26" id="3525" />
+<TGConnectingPoint num="27" id="3526" />
+<TGConnectingPoint num="28" id="3527" />
+<TGConnectingPoint num="29" id="3528" />
+<TGConnectingPoint num="30" id="3529" />
+<TGConnectingPoint num="31" id="3530" />
+<TGConnectingPoint num="32" id="3531" />
+<TGConnectingPoint num="33" id="3532" />
+<TGConnectingPoint num="34" id="3533" />
+<TGConnectingPoint num="35" id="3534" />
+<TGConnectingPoint num="36" id="3535" />
+<TGConnectingPoint num="37" id="3536" />
+<TGConnectingPoint num="38" id="3537" />
+<TGConnectingPoint num="39" id="3538" />
+<extraparam>
+<entryCode value="printf(&quot;Magnetron is off\n&quot;);" />
+</extraparam>
 </COMPONENT>
 
 
 </AVATARStateMachineDiagramPanel>
 
 <AVATARStateMachineDiagramPanel name="Controller" minX="10" maxX="1400" minY="10" maxY="900" >
-<CONNECTOR type="5102" id="3456" >
+<CONNECTOR type="5102" id="3546" >
 <cdparam x="671" y="552" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector" value="null" />
-<TGConnectingPoint num="0" id="3455" />
-<P1  x="671" y="552" id="3917" />
-<P2  x="671" y="557" id="3659" />
+<TGConnectingPoint num="0" id="3545" />
+<P1  x="671" y="552" id="4007" />
+<P2  x="671" y="557" id="3749" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3454" >
-<father id="3456" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3544" >
+<father id="3546" num="0" />
 <cdparam x="671" y="592" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3450" />
-<TGConnectingPoint num="1" id="3451" />
-<TGConnectingPoint num="2" id="3452" />
-<TGConnectingPoint num="3" id="3453" />
+<TGConnectingPoint num="0" id="3540" />
+<TGConnectingPoint num="1" id="3541" />
+<TGConnectingPoint num="2" id="3542" />
+<TGConnectingPoint num="3" id="3543" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7063,25 +7247,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3463" >
+<CONNECTOR type="5102" id="3553" >
 <cdparam x="671" y="540" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3462" />
-<P1  x="671" y="518" id="3671" />
-<P2  x="671" y="522" id="3916" />
+<TGConnectingPoint num="0" id="3552" />
+<P1  x="671" y="518" id="3761" />
+<P2  x="671" y="522" id="4006" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3461" >
-<father id="3463" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3551" >
+<father id="3553" num="0" />
 <cdparam x="671" y="580" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3457" />
-<TGConnectingPoint num="1" id="3458" />
-<TGConnectingPoint num="2" id="3459" />
-<TGConnectingPoint num="3" id="3460" />
+<TGConnectingPoint num="0" id="3547" />
+<TGConnectingPoint num="1" id="3548" />
+<TGConnectingPoint num="2" id="3549" />
+<TGConnectingPoint num="3" id="3550" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7091,25 +7275,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3470" >
+<CONNECTOR type="5102" id="3560" >
 <cdparam x="671" y="332" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3469" />
-<P1  x="671" y="332" id="3682" />
-<P2  x="671" y="345" id="3894" />
+<TGConnectingPoint num="0" id="3559" />
+<P1  x="671" y="332" id="3772" />
+<P2  x="671" y="345" id="3984" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3468" >
-<father id="3470" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3558" >
+<father id="3560" num="0" />
 <cdparam x="671" y="372" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3464" />
-<TGConnectingPoint num="1" id="3465" />
-<TGConnectingPoint num="2" id="3466" />
-<TGConnectingPoint num="3" id="3467" />
+<TGConnectingPoint num="0" id="3554" />
+<TGConnectingPoint num="1" id="3555" />
+<TGConnectingPoint num="2" id="3556" />
+<TGConnectingPoint num="3" id="3557" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7119,25 +7303,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3477" >
+<CONNECTOR type="5102" id="3567" >
 <cdparam x="428" y="373" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3476" />
-<P1  x="428" y="380" id="4043" />
-<P2  x="428" y="395" id="3778" />
+<TGConnectingPoint num="0" id="3566" />
+<P1  x="428" y="380" id="4133" />
+<P2  x="428" y="395" id="3868" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3475" >
-<father id="3477" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3565" >
+<father id="3567" num="0" />
 <cdparam x="428" y="413" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3471" />
-<TGConnectingPoint num="1" id="3472" />
-<TGConnectingPoint num="2" id="3473" />
-<TGConnectingPoint num="3" id="3474" />
+<TGConnectingPoint num="0" id="3561" />
+<TGConnectingPoint num="1" id="3562" />
+<TGConnectingPoint num="2" id="3563" />
+<TGConnectingPoint num="3" id="3564" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7147,25 +7331,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3484" >
+<CONNECTOR type="5102" id="3574" >
 <cdparam x="661" y="175" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3483" />
-<P1  x="661" y="175" id="3950" />
-<P2  x="661" y="180" id="3692" />
+<TGConnectingPoint num="0" id="3573" />
+<P1  x="661" y="175" id="4040" />
+<P2  x="661" y="180" id="3782" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3482" >
-<father id="3484" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3572" >
+<father id="3574" num="0" />
 <cdparam x="661" y="215" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3478" />
-<TGConnectingPoint num="1" id="3479" />
-<TGConnectingPoint num="2" id="3480" />
-<TGConnectingPoint num="3" id="3481" />
+<TGConnectingPoint num="0" id="3568" />
+<TGConnectingPoint num="1" id="3569" />
+<TGConnectingPoint num="2" id="3570" />
+<TGConnectingPoint num="3" id="3571" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7175,25 +7359,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3491" >
+<CONNECTOR type="5102" id="3581" >
 <cdparam x="661" y="95" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3490" />
-<P1  x="661" y="95" id="3704" />
-<P2  x="661" y="106" id="3961" />
+<TGConnectingPoint num="0" id="3580" />
+<P1  x="661" y="95" id="3794" />
+<P2  x="661" y="106" id="4051" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3489" >
-<father id="3491" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3579" >
+<father id="3581" num="0" />
 <cdparam x="661" y="135" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3485" />
-<TGConnectingPoint num="1" id="3486" />
-<TGConnectingPoint num="2" id="3487" />
-<TGConnectingPoint num="3" id="3488" />
+<TGConnectingPoint num="0" id="3575" />
+<TGConnectingPoint num="1" id="3576" />
+<TGConnectingPoint num="2" id="3577" />
+<TGConnectingPoint num="3" id="3578" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7203,25 +7387,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3498" >
+<CONNECTOR type="5102" id="3588" >
 <cdparam x="450" y="255" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3497" />
-<P1  x="492" y="208" id="3882" />
-<P2  x="453" y="262" id="3723" />
+<TGConnectingPoint num="0" id="3587" />
+<P1  x="492" y="208" id="3972" />
+<P2  x="453" y="262" id="3813" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3496" >
-<father id="3498" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3586" >
+<father id="3588" num="0" />
 <cdparam x="450" y="295" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3492" />
-<TGConnectingPoint num="1" id="3493" />
-<TGConnectingPoint num="2" id="3494" />
-<TGConnectingPoint num="3" id="3495" />
+<TGConnectingPoint num="0" id="3582" />
+<TGConnectingPoint num="1" id="3583" />
+<TGConnectingPoint num="2" id="3584" />
+<TGConnectingPoint num="3" id="3585" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7231,25 +7415,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3505" >
+<CONNECTOR type="5102" id="3595" >
 <cdparam x="304" y="257" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Receive signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3504" />
-<P1  x="357" y="209" id="3756" />
-<P2  x="403" y="262" id="3722" />
+<TGConnectingPoint num="0" id="3594" />
+<P1  x="357" y="209" id="3846" />
+<P2  x="403" y="262" id="3812" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3503" >
-<father id="3505" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3593" >
+<father id="3595" num="0" />
 <cdparam x="304" y="297" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3499" />
-<TGConnectingPoint num="1" id="3500" />
-<TGConnectingPoint num="2" id="3501" />
-<TGConnectingPoint num="3" id="3502" />
+<TGConnectingPoint num="0" id="3589" />
+<TGConnectingPoint num="1" id="3590" />
+<TGConnectingPoint num="2" id="3591" />
+<TGConnectingPoint num="3" id="3592" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7259,25 +7443,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3512" >
+<CONNECTOR type="5102" id="3602" >
 <cdparam x="409" y="164" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state1 to Receive signal" value="null" />
-<TGConnectingPoint num="0" id="3511" />
-<P1  x="409" y="164" id="3854" />
-<P2  x="357" y="179" id="3755" />
+<TGConnectingPoint num="0" id="3601" />
+<P1  x="409" y="164" id="3944" />
+<P2  x="357" y="179" id="3845" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3510" >
-<father id="3512" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3600" >
+<father id="3602" num="0" />
 <cdparam x="409" y="204" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3506" />
-<TGConnectingPoint num="1" id="3507" />
-<TGConnectingPoint num="2" id="3508" />
-<TGConnectingPoint num="3" id="3509" />
+<TGConnectingPoint num="0" id="3596" />
+<TGConnectingPoint num="1" id="3597" />
+<TGConnectingPoint num="2" id="3598" />
+<TGConnectingPoint num="3" id="3599" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7287,25 +7471,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3519" >
+<CONNECTOR type="5102" id="3609" >
 <cdparam x="646" y="270" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state1" value="null" />
-<TGConnectingPoint num="0" id="3518" />
-<P1  x="661" y="210" id="3693" />
-<P2  x="471" y="152" id="3853" />
+<TGConnectingPoint num="0" id="3608" />
+<P1  x="661" y="210" id="3783" />
+<P2  x="471" y="152" id="3943" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3517" >
-<father id="3519" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3607" >
+<father id="3609" num="0" />
 <cdparam x="646" y="310" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3513" />
-<TGConnectingPoint num="1" id="3514" />
-<TGConnectingPoint num="2" id="3515" />
-<TGConnectingPoint num="3" id="3516" />
+<TGConnectingPoint num="0" id="3603" />
+<TGConnectingPoint num="1" id="3604" />
+<TGConnectingPoint num="2" id="3605" />
+<TGConnectingPoint num="3" id="3606" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7315,25 +7499,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3526" >
+<CONNECTOR type="5102" id="3616" >
 <cdparam x="660" y="178" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state0 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3525" />
-<P1  x="661" y="141" id="3966" />
-<P2  x="661" y="145" id="3949" />
+<TGConnectingPoint num="0" id="3615" />
+<P1  x="661" y="141" id="4056" />
+<P2  x="661" y="145" id="4039" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3524" >
-<father id="3526" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3614" >
+<father id="3616" num="0" />
 <cdparam x="660" y="218" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3520" />
-<TGConnectingPoint num="1" id="3521" />
-<TGConnectingPoint num="2" id="3522" />
-<TGConnectingPoint num="3" id="3523" />
+<TGConnectingPoint num="0" id="3610" />
+<TGConnectingPoint num="1" id="3611" />
+<TGConnectingPoint num="2" id="3612" />
+<TGConnectingPoint num="3" id="3613" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7343,25 +7527,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3533" >
+<CONNECTOR type="5102" id="3623" >
 <cdparam x="659" y="110" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3532" />
-<P1  x="661" y="61" id="3830" />
-<P2  x="661" y="65" id="3703" />
+<TGConnectingPoint num="0" id="3622" />
+<P1  x="661" y="61" id="3920" />
+<P2  x="661" y="65" id="3793" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3531" >
-<father id="3533" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3621" >
+<father id="3623" num="0" />
 <cdparam x="659" y="150" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3527" />
-<TGConnectingPoint num="1" id="3528" />
-<TGConnectingPoint num="2" id="3529" />
-<TGConnectingPoint num="3" id="3530" />
+<TGConnectingPoint num="0" id="3617" />
+<TGConnectingPoint num="1" id="3618" />
+<TGConnectingPoint num="2" id="3619" />
+<TGConnectingPoint num="3" id="3620" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7371,25 +7555,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3540" >
+<CONNECTOR type="5102" id="3630" >
 <cdparam x="739" y="573" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3539" />
-<P1  x="671" y="485" id="3939" />
-<P2  x="671" y="488" id="3670" />
+<TGConnectingPoint num="0" id="3629" />
+<P1  x="671" y="485" id="4029" />
+<P2  x="671" y="488" id="3760" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3538" >
-<father id="3540" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3628" >
+<father id="3630" num="0" />
 <cdparam x="739" y="613" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3534" />
-<TGConnectingPoint num="1" id="3535" />
-<TGConnectingPoint num="2" id="3536" />
-<TGConnectingPoint num="3" id="3537" />
+<TGConnectingPoint num="0" id="3624" />
+<TGConnectingPoint num="1" id="3625" />
+<TGConnectingPoint num="2" id="3626" />
+<TGConnectingPoint num="3" id="3627" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7399,25 +7583,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3547" >
+<CONNECTOR type="5102" id="3637" >
 <cdparam x="769" y="593" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state0 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3546" />
-<P1  x="671" y="443" id="4007" />
-<P2  x="671" y="455" id="3938" />
+<TGConnectingPoint num="0" id="3636" />
+<P1  x="671" y="443" id="4097" />
+<P2  x="671" y="455" id="4028" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3545" >
-<father id="3547" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3635" >
+<father id="3637" num="0" />
 <cdparam x="769" y="633" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3541" />
-<TGConnectingPoint num="1" id="3542" />
-<TGConnectingPoint num="2" id="3543" />
-<TGConnectingPoint num="3" id="3544" />
+<TGConnectingPoint num="0" id="3631" />
+<TGConnectingPoint num="1" id="3632" />
+<TGConnectingPoint num="2" id="3633" />
+<TGConnectingPoint num="3" id="3634" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7427,55 +7611,55 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3560" >
+<CONNECTOR type="5102" id="3650" >
 <cdparam x="656" y="608" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3556" />
-<TGConnectingPoint num="1" id="3557" />
-<TGConnectingPoint num="2" id="3558" />
-<TGConnectingPoint num="3" id="3559" />
-<P1  x="671" y="587" id="3660" />
-<P2  x="478" y="432" id="3790" />
+<TGConnectingPoint num="0" id="3646" />
+<TGConnectingPoint num="1" id="3647" />
+<TGConnectingPoint num="2" id="3648" />
+<TGConnectingPoint num="3" id="3649" />
+<P1  x="671" y="587" id="3750" />
+<P2  x="478" y="432" id="3880" />
 <Point x="671" y="595" />
 <Point x="548" y="595" />
 <Point x="548" y="432" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3548" >
-<father id="3560" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3638" >
+<father id="3650" num="0" />
 <cdparam x="671" y="595" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3549" >
-<father id="3560" num="1" />
+<SUBCOMPONENT type="-1" id="3639" >
+<father id="3650" num="1" />
 <cdparam x="548" y="595" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3550" >
-<father id="3560" num="2" />
+<SUBCOMPONENT type="-1" id="3640" >
+<father id="3650" num="2" />
 <cdparam x="548" y="432" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3555" >
-<father id="3560" num="3" />
+<SUBCOMPONENT type="-1" id="3645" >
+<father id="3650" num="3" />
 <cdparam x="656" y="648" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3551" />
-<TGConnectingPoint num="1" id="3552" />
-<TGConnectingPoint num="2" id="3553" />
-<TGConnectingPoint num="3" id="3554" />
+<TGConnectingPoint num="0" id="3641" />
+<TGConnectingPoint num="1" id="3642" />
+<TGConnectingPoint num="2" id="3643" />
+<TGConnectingPoint num="3" id="3644" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7485,25 +7669,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3567" >
+<CONNECTOR type="5102" id="3657" >
 <cdparam x="770" y="523" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3566" />
-<P1  x="671" y="375" id="3895" />
-<P2  x="671" y="393" id="4002" />
+<TGConnectingPoint num="0" id="3656" />
+<P1  x="671" y="375" id="3985" />
+<P2  x="671" y="393" id="4092" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3565" >
-<father id="3567" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3655" >
+<father id="3657" num="0" />
 <cdparam x="770" y="563" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3561" />
-<TGConnectingPoint num="1" id="3562" />
-<TGConnectingPoint num="2" id="3563" />
-<TGConnectingPoint num="3" id="3564" />
+<TGConnectingPoint num="0" id="3651" />
+<TGConnectingPoint num="1" id="3652" />
+<TGConnectingPoint num="2" id="3653" />
+<TGConnectingPoint num="3" id="3654" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7513,25 +7697,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3574" >
+<CONNECTOR type="5102" id="3664" >
 <cdparam x="642" y="363" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Receive signal to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3573" />
-<P1  x="670" y="287" id="3767" />
-<P2  x="671" y="302" id="3681" />
+<TGConnectingPoint num="0" id="3663" />
+<P1  x="670" y="287" id="3857" />
+<P2  x="671" y="302" id="3771" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3572" >
-<father id="3574" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3662" >
+<father id="3664" num="0" />
 <cdparam x="654" y="379" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3568" />
-<TGConnectingPoint num="1" id="3569" />
-<TGConnectingPoint num="2" id="3570" />
-<TGConnectingPoint num="3" id="3571" />
+<TGConnectingPoint num="0" id="3658" />
+<TGConnectingPoint num="1" id="3659" />
+<TGConnectingPoint num="2" id="3660" />
+<TGConnectingPoint num="3" id="3661" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7541,55 +7725,55 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3587" >
+<CONNECTOR type="5102" id="3677" >
 <cdparam x="425" y="562" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state0 to state0" value="null" />
-<TGConnectingPoint num="0" id="3583" />
-<TGConnectingPoint num="1" id="3584" />
-<TGConnectingPoint num="2" id="3585" />
-<TGConnectingPoint num="3" id="3586" />
-<P1  x="403" y="445" id="3791" />
-<P2  x="378" y="432" id="3789" />
+<TGConnectingPoint num="0" id="3673" />
+<TGConnectingPoint num="1" id="3674" />
+<TGConnectingPoint num="2" id="3675" />
+<TGConnectingPoint num="3" id="3676" />
+<P1  x="403" y="445" id="3881" />
+<P2  x="378" y="432" id="3879" />
 <Point x="403" y="480" />
 <Point x="319" y="480" />
 <Point x="319" y="432" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3575" >
-<father id="3587" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3665" >
+<father id="3677" num="0" />
 <cdparam x="403" y="480" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3576" >
-<father id="3587" num="1" />
+<SUBCOMPONENT type="-1" id="3666" >
+<father id="3677" num="1" />
 <cdparam x="319" y="480" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3577" >
-<father id="3587" num="2" />
+<SUBCOMPONENT type="-1" id="3667" >
+<father id="3677" num="2" />
 <cdparam x="319" y="432" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3582" >
-<father id="3587" num="3" />
+<SUBCOMPONENT type="-1" id="3672" >
+<father id="3677" num="3" />
 <cdparam x="158" y="477" />
 <sizeparam width="205" height="60" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3578" />
-<TGConnectingPoint num="1" id="3579" />
-<TGConnectingPoint num="2" id="3580" />
-<TGConnectingPoint num="3" id="3581" />
+<TGConnectingPoint num="0" id="3668" />
+<TGConnectingPoint num="1" id="3669" />
+<TGConnectingPoint num="2" id="3670" />
+<TGConnectingPoint num="3" id="3671" />
 <extraparam>
 <guard value="[ remainingTime&gt;0 ]" />
 <afterMin value="1" />
@@ -7601,25 +7785,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3594" >
+<CONNECTOR type="5102" id="3684" >
 <cdparam x="499" y="496" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state0 to Receive signal" value="null" />
-<TGConnectingPoint num="0" id="3593" />
-<P1  x="478" y="420" id="3781" />
-<P2  x="670" y="257" id="3766" />
+<TGConnectingPoint num="0" id="3683" />
+<P1  x="478" y="420" id="3871" />
+<P2  x="670" y="257" id="3856" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3592" >
-<father id="3594" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3682" >
+<father id="3684" num="0" />
 <cdparam x="513" y="302" />
 <sizeparam width="201" height="60" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3588" />
-<TGConnectingPoint num="1" id="3589" />
-<TGConnectingPoint num="2" id="3590" />
-<TGConnectingPoint num="3" id="3591" />
+<TGConnectingPoint num="0" id="3678" />
+<TGConnectingPoint num="1" id="3679" />
+<TGConnectingPoint num="2" id="3680" />
+<TGConnectingPoint num="3" id="3681" />
 <extraparam>
 <guard value="[remainingTime &gt; 0 ]" />
 <afterMin value="1" />
@@ -7631,25 +7815,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3601" >
+<CONNECTOR type="5102" id="3691" >
 <cdparam x="450" y="562" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state0 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3600" />
-<P1  x="428" y="445" id="3783" />
-<P2  x="428" y="507" id="3905" />
+<TGConnectingPoint num="0" id="3690" />
+<P1  x="428" y="445" id="3873" />
+<P2  x="428" y="507" id="3995" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3599" >
-<father id="3601" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3689" >
+<father id="3691" num="0" />
 <cdparam x="397" y="475" />
 <sizeparam width="139" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3595" />
-<TGConnectingPoint num="1" id="3596" />
-<TGConnectingPoint num="2" id="3597" />
-<TGConnectingPoint num="3" id="3598" />
+<TGConnectingPoint num="0" id="3685" />
+<TGConnectingPoint num="1" id="3686" />
+<TGConnectingPoint num="2" id="3687" />
+<TGConnectingPoint num="3" id="3688" />
 <extraparam>
 <guard value="[ remainingTime==0 ]" />
 <afterMin value="" />
@@ -7659,25 +7843,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3608" >
+<CONNECTOR type="5102" id="3698" >
 <cdparam x="450" y="487" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="3607" />
-<P1  x="428" y="334" id="3928" />
-<P2  x="428" y="350" id="4042" />
+<TGConnectingPoint num="0" id="3697" />
+<P1  x="428" y="334" id="4018" />
+<P2  x="428" y="350" id="4132" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3606" >
-<father id="3608" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3696" >
+<father id="3698" num="0" />
 <cdparam x="252" y="341" />
 <sizeparam width="166" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3602" />
-<TGConnectingPoint num="1" id="3603" />
-<TGConnectingPoint num="2" id="3604" />
-<TGConnectingPoint num="3" id="3605" />
+<TGConnectingPoint num="0" id="3692" />
+<TGConnectingPoint num="1" id="3693" />
+<TGConnectingPoint num="2" id="3694" />
+<TGConnectingPoint num="3" id="3695" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7689,65 +7873,65 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3623" >
+<CONNECTOR type="5102" id="3713" >
 <cdparam x="419" y="547" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state1" value="null" />
-<TGConnectingPoint num="0" id="3618" />
-<TGConnectingPoint num="1" id="3619" />
-<TGConnectingPoint num="2" id="3620" />
-<TGConnectingPoint num="3" id="3621" />
-<TGConnectingPoint num="4" id="3622" />
-<P1  x="428" y="579" id="3819" />
-<P2  x="389" y="119" id="3840" />
+<TGConnectingPoint num="0" id="3708" />
+<TGConnectingPoint num="1" id="3709" />
+<TGConnectingPoint num="2" id="3710" />
+<TGConnectingPoint num="3" id="3711" />
+<TGConnectingPoint num="4" id="3712" />
+<P1  x="428" y="579" id="3909" />
+<P2  x="389" y="119" id="3930" />
 <Point x="428" y="603" />
 <Point x="220" y="603" />
 <Point x="220" y="83" />
 <Point x="389" y="83" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3609" >
-<father id="3623" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3699" >
+<father id="3713" num="0" />
 <cdparam x="428" y="603" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3610" >
-<father id="3623" num="1" />
+<SUBCOMPONENT type="-1" id="3700" >
+<father id="3713" num="1" />
 <cdparam x="220" y="603" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3611" >
-<father id="3623" num="2" />
+<SUBCOMPONENT type="-1" id="3701" >
+<father id="3713" num="2" />
 <cdparam x="220" y="83" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3612" >
-<father id="3623" num="3" />
+<SUBCOMPONENT type="-1" id="3702" >
+<father id="3713" num="3" />
 <cdparam x="389" y="83" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="3617" >
-<father id="3623" num="4" />
+<SUBCOMPONENT type="-1" id="3707" >
+<father id="3713" num="4" />
 <cdparam x="448" y="590" />
 <sizeparam width="59" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3613" />
-<TGConnectingPoint num="1" id="3614" />
-<TGConnectingPoint num="2" id="3615" />
-<TGConnectingPoint num="3" id="3616" />
+<TGConnectingPoint num="0" id="3703" />
+<TGConnectingPoint num="1" id="3704" />
+<TGConnectingPoint num="2" id="3705" />
+<TGConnectingPoint num="3" id="3706" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="5" />
@@ -7757,25 +7941,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3630" >
+<CONNECTOR type="5102" id="3720" >
 <cdparam x="419" y="633" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3629" />
-<P1  x="428" y="537" id="3906" />
-<P2  x="428" y="549" id="3818" />
+<TGConnectingPoint num="0" id="3719" />
+<P1  x="428" y="537" id="3996" />
+<P2  x="428" y="549" id="3908" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3628" >
-<father id="3630" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3718" >
+<father id="3720" num="0" />
 <cdparam x="419" y="673" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3624" />
-<TGConnectingPoint num="1" id="3625" />
-<TGConnectingPoint num="2" id="3626" />
-<TGConnectingPoint num="3" id="3627" />
+<TGConnectingPoint num="0" id="3714" />
+<TGConnectingPoint num="1" id="3715" />
+<TGConnectingPoint num="2" id="3716" />
+<TGConnectingPoint num="3" id="3717" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7785,25 +7969,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3637" >
+<CONNECTOR type="5102" id="3727" >
 <cdparam x="471" y="183" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state1 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3636" />
-<P1  x="471" y="141" id="3844" />
-<P2  x="661" y="31" id="3829" />
+<TGConnectingPoint num="0" id="3726" />
+<P1  x="471" y="141" id="3934" />
+<P2  x="661" y="31" id="3919" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3635" >
-<father id="3637" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3725" >
+<father id="3727" num="0" />
 <cdparam x="471" y="223" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3631" />
-<TGConnectingPoint num="1" id="3632" />
-<TGConnectingPoint num="2" id="3633" />
-<TGConnectingPoint num="3" id="3634" />
+<TGConnectingPoint num="0" id="3721" />
+<TGConnectingPoint num="1" id="3722" />
+<TGConnectingPoint num="2" id="3723" />
+<TGConnectingPoint num="3" id="3724" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7813,25 +7997,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3644" >
+<CONNECTOR type="5102" id="3734" >
 <cdparam x="463" y="186" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state1 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3643" />
-<P1  x="450" y="164" id="3855" />
-<P2  x="492" y="178" id="3881" />
+<TGConnectingPoint num="0" id="3733" />
+<P1  x="450" y="164" id="3945" />
+<P2  x="492" y="178" id="3971" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3642" >
-<father id="3644" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3732" >
+<father id="3734" num="0" />
 <cdparam x="400" y="221" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3638" />
-<TGConnectingPoint num="1" id="3639" />
-<TGConnectingPoint num="2" id="3640" />
-<TGConnectingPoint num="3" id="3641" />
+<TGConnectingPoint num="0" id="3728" />
+<TGConnectingPoint num="1" id="3729" />
+<TGConnectingPoint num="2" id="3730" />
+<TGConnectingPoint num="3" id="3731" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7841,25 +8025,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3651" >
+<CONNECTOR type="5102" id="3741" >
 <cdparam x="438" y="140" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from start state to state1" value="null" />
-<TGConnectingPoint num="0" id="3650" />
-<P1  x="430" y="100" id="3892" />
-<P2  x="430" y="119" id="3841" />
+<TGConnectingPoint num="0" id="3740" />
+<P1  x="430" y="100" id="3982" />
+<P2  x="430" y="119" id="3931" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3649" >
-<father id="3651" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3739" >
+<father id="3741" num="0" />
 <cdparam x="442" y="129" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3645" />
-<TGConnectingPoint num="1" id="3646" />
-<TGConnectingPoint num="2" id="3647" />
-<TGConnectingPoint num="3" id="3648" />
+<TGConnectingPoint num="0" id="3735" />
+<TGConnectingPoint num="1" id="3736" />
+<TGConnectingPoint num="2" id="3737" />
+<TGConnectingPoint num="3" id="3738" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7869,25 +8053,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="3658" >
+<CONNECTOR type="5102" id="3748" >
 <cdparam x="449" y="388" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to Send signal" value="null" />
-<TGConnectingPoint num="0" id="3657" />
-<P1  x="428" y="298" id="3720" />
-<P2  x="428" y="304" id="3927" />
+<TGConnectingPoint num="0" id="3747" />
+<P1  x="428" y="298" id="3810" />
+<P2  x="428" y="304" id="4017" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="3656" >
-<father id="3658" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="3746" >
+<father id="3748" num="0" />
 <cdparam x="449" y="428" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="3652" />
-<TGConnectingPoint num="1" id="3653" />
-<TGConnectingPoint num="2" id="3654" />
-<TGConnectingPoint num="3" id="3655" />
+<TGConnectingPoint num="0" id="3742" />
+<TGConnectingPoint num="1" id="3743" />
+<TGConnectingPoint num="2" id="3744" />
+<TGConnectingPoint num="3" id="3745" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -7897,622 +8081,622 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<COMPONENT type="5103" id="3669" >
+<COMPONENT type="5103" id="3759" >
 <cdparam x="605" y="562" />
 <sizeparam width="133" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="obs_magnetronStart()" />
-<TGConnectingPoint num="0" id="3659" />
-<TGConnectingPoint num="1" id="3660" />
-<TGConnectingPoint num="2" id="3661" />
-<TGConnectingPoint num="3" id="3662" />
-<TGConnectingPoint num="4" id="3663" />
-<TGConnectingPoint num="5" id="3664" />
-<TGConnectingPoint num="6" id="3665" />
-<TGConnectingPoint num="7" id="3666" />
-<TGConnectingPoint num="8" id="3667" />
-<TGConnectingPoint num="9" id="3668" />
-</COMPONENT>
-
-<COMPONENT type="5103" id="3680" >
+<TGConnectingPoint num="0" id="3749" />
+<TGConnectingPoint num="1" id="3750" />
+<TGConnectingPoint num="2" id="3751" />
+<TGConnectingPoint num="3" id="3752" />
+<TGConnectingPoint num="4" id="3753" />
+<TGConnectingPoint num="5" id="3754" />
+<TGConnectingPoint num="6" id="3755" />
+<TGConnectingPoint num="7" id="3756" />
+<TGConnectingPoint num="8" id="3757" />
+<TGConnectingPoint num="9" id="3758" />
+</COMPONENT>
+
+<COMPONENT type="5103" id="3770" >
 <cdparam x="630" y="493" />
 <sizeparam width="82" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="obs_closed()" />
-<TGConnectingPoint num="0" id="3670" />
-<TGConnectingPoint num="1" id="3671" />
-<TGConnectingPoint num="2" id="3672" />
-<TGConnectingPoint num="3" id="3673" />
-<TGConnectingPoint num="4" id="3674" />
-<TGConnectingPoint num="5" id="3675" />
-<TGConnectingPoint num="6" id="3676" />
-<TGConnectingPoint num="7" id="3677" />
-<TGConnectingPoint num="8" id="3678" />
-<TGConnectingPoint num="9" id="3679" />
-</COMPONENT>
-
-<COMPONENT type="5103" id="3691" >
+<TGConnectingPoint num="0" id="3760" />
+<TGConnectingPoint num="1" id="3761" />
+<TGConnectingPoint num="2" id="3762" />
+<TGConnectingPoint num="3" id="3763" />
+<TGConnectingPoint num="4" id="3764" />
+<TGConnectingPoint num="5" id="3765" />
+<TGConnectingPoint num="6" id="3766" />
+<TGConnectingPoint num="7" id="3767" />
+<TGConnectingPoint num="8" id="3768" />
+<TGConnectingPoint num="9" id="3769" />
+</COMPONENT>
+
+<COMPONENT type="5103" id="3781" >
 <cdparam x="634" y="307" />
 <sizeparam width="74" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="obs_open()" />
-<TGConnectingPoint num="0" id="3681" />
-<TGConnectingPoint num="1" id="3682" />
-<TGConnectingPoint num="2" id="3683" />
-<TGConnectingPoint num="3" id="3684" />
-<TGConnectingPoint num="4" id="3685" />
-<TGConnectingPoint num="5" id="3686" />
-<TGConnectingPoint num="6" id="3687" />
-<TGConnectingPoint num="7" id="3688" />
-<TGConnectingPoint num="8" id="3689" />
-<TGConnectingPoint num="9" id="3690" />
-</COMPONENT>
-
-<COMPONENT type="5103" id="3702" >
+<TGConnectingPoint num="0" id="3771" />
+<TGConnectingPoint num="1" id="3772" />
+<TGConnectingPoint num="2" id="3773" />
+<TGConnectingPoint num="3" id="3774" />
+<TGConnectingPoint num="4" id="3775" />
+<TGConnectingPoint num="5" id="3776" />
+<TGConnectingPoint num="6" id="3777" />
+<TGConnectingPoint num="7" id="3778" />
+<TGConnectingPoint num="8" id="3779" />
+<TGConnectingPoint num="9" id="3780" />
+</COMPONENT>
+
+<COMPONENT type="5103" id="3792" >
 <cdparam x="620" y="185" />
 <sizeparam width="82" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="obs_closed()" />
-<TGConnectingPoint num="0" id="3692" />
-<TGConnectingPoint num="1" id="3693" />
-<TGConnectingPoint num="2" id="3694" />
-<TGConnectingPoint num="3" id="3695" />
-<TGConnectingPoint num="4" id="3696" />
-<TGConnectingPoint num="5" id="3697" />
-<TGConnectingPoint num="6" id="3698" />
-<TGConnectingPoint num="7" id="3699" />
-<TGConnectingPoint num="8" id="3700" />
-<TGConnectingPoint num="9" id="3701" />
-</COMPONENT>
-
-<COMPONENT type="5103" id="3713" >
+<TGConnectingPoint num="0" id="3782" />
+<TGConnectingPoint num="1" id="3783" />
+<TGConnectingPoint num="2" id="3784" />
+<TGConnectingPoint num="3" id="3785" />
+<TGConnectingPoint num="4" id="3786" />
+<TGConnectingPoint num="5" id="3787" />
+<TGConnectingPoint num="6" id="3788" />
+<TGConnectingPoint num="7" id="3789" />
+<TGConnectingPoint num="8" id="3790" />
+<TGConnectingPoint num="9" id="3791" />
+</COMPONENT>
+
+<COMPONENT type="5103" id="3803" >
 <cdparam x="624" y="70" />
 <sizeparam width="74" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="obs_open()" />
-<TGConnectingPoint num="0" id="3703" />
-<TGConnectingPoint num="1" id="3704" />
-<TGConnectingPoint num="2" id="3705" />
-<TGConnectingPoint num="3" id="3706" />
-<TGConnectingPoint num="4" id="3707" />
-<TGConnectingPoint num="5" id="3708" />
-<TGConnectingPoint num="6" id="3709" />
-<TGConnectingPoint num="7" id="3710" />
-<TGConnectingPoint num="8" id="3711" />
-<TGConnectingPoint num="9" id="3712" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="3754" >
+<TGConnectingPoint num="0" id="3793" />
+<TGConnectingPoint num="1" id="3794" />
+<TGConnectingPoint num="2" id="3795" />
+<TGConnectingPoint num="3" id="3796" />
+<TGConnectingPoint num="4" id="3797" />
+<TGConnectingPoint num="5" id="3798" />
+<TGConnectingPoint num="6" id="3799" />
+<TGConnectingPoint num="7" id="3800" />
+<TGConnectingPoint num="8" id="3801" />
+<TGConnectingPoint num="9" id="3802" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="3844" >
 <cdparam x="378" y="262" />
 <sizeparam width="100" height="36" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="state0" value="Starting" />
-<TGConnectingPoint num="0" id="3714" />
-<TGConnectingPoint num="1" id="3715" />
-<TGConnectingPoint num="2" id="3716" />
-<TGConnectingPoint num="3" id="3717" />
-<TGConnectingPoint num="4" id="3718" />
-<TGConnectingPoint num="5" id="3719" />
-<TGConnectingPoint num="6" id="3720" />
-<TGConnectingPoint num="7" id="3721" />
-<TGConnectingPoint num="8" id="3722" />
-<TGConnectingPoint num="9" id="3723" />
-<TGConnectingPoint num="10" id="3724" />
-<TGConnectingPoint num="11" id="3725" />
-<TGConnectingPoint num="12" id="3726" />
-<TGConnectingPoint num="13" id="3727" />
-<TGConnectingPoint num="14" id="3728" />
-<TGConnectingPoint num="15" id="3729" />
-<TGConnectingPoint num="16" id="3730" />
-<TGConnectingPoint num="17" id="3731" />
-<TGConnectingPoint num="18" id="3732" />
-<TGConnectingPoint num="19" id="3733" />
-<TGConnectingPoint num="20" id="3734" />
-<TGConnectingPoint num="21" id="3735" />
-<TGConnectingPoint num="22" id="3736" />
-<TGConnectingPoint num="23" id="3737" />
-<TGConnectingPoint num="24" id="3738" />
-<TGConnectingPoint num="25" id="3739" />
-<TGConnectingPoint num="26" id="3740" />
-<TGConnectingPoint num="27" id="3741" />
-<TGConnectingPoint num="28" id="3742" />
-<TGConnectingPoint num="29" id="3743" />
-<TGConnectingPoint num="30" id="3744" />
-<TGConnectingPoint num="31" id="3745" />
-<TGConnectingPoint num="32" id="3746" />
-<TGConnectingPoint num="33" id="3747" />
-<TGConnectingPoint num="34" id="3748" />
-<TGConnectingPoint num="35" id="3749" />
-<TGConnectingPoint num="36" id="3750" />
-<TGConnectingPoint num="37" id="3751" />
-<TGConnectingPoint num="38" id="3752" />
-<TGConnectingPoint num="39" id="3753" />
+<TGConnectingPoint num="0" id="3804" />
+<TGConnectingPoint num="1" id="3805" />
+<TGConnectingPoint num="2" id="3806" />
+<TGConnectingPoint num="3" id="3807" />
+<TGConnectingPoint num="4" id="3808" />
+<TGConnectingPoint num="5" id="3809" />
+<TGConnectingPoint num="6" id="3810" />
+<TGConnectingPoint num="7" id="3811" />
+<TGConnectingPoint num="8" id="3812" />
+<TGConnectingPoint num="9" id="3813" />
+<TGConnectingPoint num="10" id="3814" />
+<TGConnectingPoint num="11" id="3815" />
+<TGConnectingPoint num="12" id="3816" />
+<TGConnectingPoint num="13" id="3817" />
+<TGConnectingPoint num="14" id="3818" />
+<TGConnectingPoint num="15" id="3819" />
+<TGConnectingPoint num="16" id="3820" />
+<TGConnectingPoint num="17" id="3821" />
+<TGConnectingPoint num="18" id="3822" />
+<TGConnectingPoint num="19" id="3823" />
+<TGConnectingPoint num="20" id="3824" />
+<TGConnectingPoint num="21" id="3825" />
+<TGConnectingPoint num="22" id="3826" />
+<TGConnectingPoint num="23" id="3827" />
+<TGConnectingPoint num="24" id="3828" />
+<TGConnectingPoint num="25" id="3829" />
+<TGConnectingPoint num="26" id="3830" />
+<TGConnectingPoint num="27" id="3831" />
+<TGConnectingPoint num="28" id="3832" />
+<TGConnectingPoint num="29" id="3833" />
+<TGConnectingPoint num="30" id="3834" />
+<TGConnectingPoint num="31" id="3835" />
+<TGConnectingPoint num="32" id="3836" />
+<TGConnectingPoint num="33" id="3837" />
+<TGConnectingPoint num="34" id="3838" />
+<TGConnectingPoint num="35" id="3839" />
+<TGConnectingPoint num="36" id="3840" />
+<TGConnectingPoint num="37" id="3841" />
+<TGConnectingPoint num="38" id="3842" />
+<TGConnectingPoint num="39" id="3843" />
 <extraparam>
 <entryCode value="printf(&quot;Starting microwave, lets go!\n&quot;);" />
 </extraparam>
 </COMPONENT>
 
-<COMPONENT type="5104" id="3765" >
+<COMPONENT type="5104" id="3855" >
 <cdparam x="287" y="184" />
 <sizeparam width="141" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Receive signal" value="remoteStart(duration)" />
-<TGConnectingPoint num="0" id="3755" />
-<TGConnectingPoint num="1" id="3756" />
-<TGConnectingPoint num="2" id="3757" />
-<TGConnectingPoint num="3" id="3758" />
-<TGConnectingPoint num="4" id="3759" />
-<TGConnectingPoint num="5" id="3760" />
-<TGConnectingPoint num="6" id="3761" />
-<TGConnectingPoint num="7" id="3762" />
-<TGConnectingPoint num="8" id="3763" />
-<TGConnectingPoint num="9" id="3764" />
-</COMPONENT>
-
-<COMPONENT type="5104" id="3776" >
+<TGConnectingPoint num="0" id="3845" />
+<TGConnectingPoint num="1" id="3846" />
+<TGConnectingPoint num="2" id="3847" />
+<TGConnectingPoint num="3" id="3848" />
+<TGConnectingPoint num="4" id="3849" />
+<TGConnectingPoint num="5" id="3850" />
+<TGConnectingPoint num="6" id="3851" />
+<TGConnectingPoint num="7" id="3852" />
+<TGConnectingPoint num="8" id="3853" />
+<TGConnectingPoint num="9" id="3854" />
+</COMPONENT>
+
+<COMPONENT type="5104" id="3866" >
 <cdparam x="643" y="262" />
 <sizeparam width="55" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Receive signal" value="open()" />
-<TGConnectingPoint num="0" id="3766" />
-<TGConnectingPoint num="1" id="3767" />
-<TGConnectingPoint num="2" id="3768" />
-<TGConnectingPoint num="3" id="3769" />
-<TGConnectingPoint num="4" id="3770" />
-<TGConnectingPoint num="5" id="3771" />
-<TGConnectingPoint num="6" id="3772" />
-<TGConnectingPoint num="7" id="3773" />
-<TGConnectingPoint num="8" id="3774" />
-<TGConnectingPoint num="9" id="3775" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="3817" >
+<TGConnectingPoint num="0" id="3856" />
+<TGConnectingPoint num="1" id="3857" />
+<TGConnectingPoint num="2" id="3858" />
+<TGConnectingPoint num="3" id="3859" />
+<TGConnectingPoint num="4" id="3860" />
+<TGConnectingPoint num="5" id="3861" />
+<TGConnectingPoint num="6" id="3862" />
+<TGConnectingPoint num="7" id="3863" />
+<TGConnectingPoint num="8" id="3864" />
+<TGConnectingPoint num="9" id="3865" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="3907" >
 <cdparam x="378" y="395" />
 <sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="state0" value="ReallyHeating" />
-<TGConnectingPoint num="0" id="3777" />
-<TGConnectingPoint num="1" id="3778" />
-<TGConnectingPoint num="2" id="3779" />
-<TGConnectingPoint num="3" id="3780" />
-<TGConnectingPoint num="4" id="3781" />
-<TGConnectingPoint num="5" id="3782" />
-<TGConnectingPoint num="6" id="3783" />
-<TGConnectingPoint num="7" id="3784" />
-<TGConnectingPoint num="8" id="3785" />
-<TGConnectingPoint num="9" id="3786" />
-<TGConnectingPoint num="10" id="3787" />
-<TGConnectingPoint num="11" id="3788" />
-<TGConnectingPoint num="12" id="3789" />
-<TGConnectingPoint num="13" id="3790" />
-<TGConnectingPoint num="14" id="3791" />
-<TGConnectingPoint num="15" id="3792" />
-<TGConnectingPoint num="16" id="3793" />
-<TGConnectingPoint num="17" id="3794" />
-<TGConnectingPoint num="18" id="3795" />
-<TGConnectingPoint num="19" id="3796" />
-<TGConnectingPoint num="20" id="3797" />
-<TGConnectingPoint num="21" id="3798" />
-<TGConnectingPoint num="22" id="3799" />
-<TGConnectingPoint num="23" id="3800" />
-<TGConnectingPoint num="24" id="3801" />
-<TGConnectingPoint num="25" id="3802" />
-<TGConnectingPoint num="26" id="3803" />
-<TGConnectingPoint num="27" id="3804" />
-<TGConnectingPoint num="28" id="3805" />
-<TGConnectingPoint num="29" id="3806" />
-<TGConnectingPoint num="30" id="3807" />
-<TGConnectingPoint num="31" id="3808" />
-<TGConnectingPoint num="32" id="3809" />
-<TGConnectingPoint num="33" id="3810" />
-<TGConnectingPoint num="34" id="3811" />
-<TGConnectingPoint num="35" id="3812" />
-<TGConnectingPoint num="36" id="3813" />
-<TGConnectingPoint num="37" id="3814" />
-<TGConnectingPoint num="38" id="3815" />
-<TGConnectingPoint num="39" id="3816" />
+<TGConnectingPoint num="0" id="3867" />
+<TGConnectingPoint num="1" id="3868" />
+<TGConnectingPoint num="2" id="3869" />
+<TGConnectingPoint num="3" id="3870" />
+<TGConnectingPoint num="4" id="3871" />
+<TGConnectingPoint num="5" id="3872" />
+<TGConnectingPoint num="6" id="3873" />
+<TGConnectingPoint num="7" id="3874" />
+<TGConnectingPoint num="8" id="3875" />
+<TGConnectingPoint num="9" id="3876" />
+<TGConnectingPoint num="10" id="3877" />
+<TGConnectingPoint num="11" id="3878" />
+<TGConnectingPoint num="12" id="3879" />
+<TGConnectingPoint num="13" id="3880" />
+<TGConnectingPoint num="14" id="3881" />
+<TGConnectingPoint num="15" id="3882" />
+<TGConnectingPoint num="16" id="3883" />
+<TGConnectingPoint num="17" id="3884" />
+<TGConnectingPoint num="18" id="3885" />
+<TGConnectingPoint num="19" id="3886" />
+<TGConnectingPoint num="20" id="3887" />
+<TGConnectingPoint num="21" id="3888" />
+<TGConnectingPoint num="22" id="3889" />
+<TGConnectingPoint num="23" id="3890" />
+<TGConnectingPoint num="24" id="3891" />
+<TGConnectingPoint num="25" id="3892" />
+<TGConnectingPoint num="26" id="3893" />
+<TGConnectingPoint num="27" id="3894" />
+<TGConnectingPoint num="28" id="3895" />
+<TGConnectingPoint num="29" id="3896" />
+<TGConnectingPoint num="30" id="3897" />
+<TGConnectingPoint num="31" id="3898" />
+<TGConnectingPoint num="32" id="3899" />
+<TGConnectingPoint num="33" id="3900" />
+<TGConnectingPoint num="34" id="3901" />
+<TGConnectingPoint num="35" id="3902" />
+<TGConnectingPoint num="36" id="3903" />
+<TGConnectingPoint num="37" id="3904" />
+<TGConnectingPoint num="38" id="3905" />
+<TGConnectingPoint num="39" id="3906" />
 <extraparam>
 <entryCode value="printf(&quot;Heating ; remaining time :%d\n&quot;, remainingTime);" />
 </extraparam>
 </COMPONENT>
 
-<COMPONENT type="5103" id="3828" >
+<COMPONENT type="5103" id="3918" >
 <cdparam x="398" y="554" />
 <sizeparam width="60" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="ringBell()" />
-<TGConnectingPoint num="0" id="3818" />
-<TGConnectingPoint num="1" id="3819" />
-<TGConnectingPoint num="2" id="3820" />
-<TGConnectingPoint num="3" id="3821" />
-<TGConnectingPoint num="4" id="3822" />
-<TGConnectingPoint num="5" id="3823" />
-<TGConnectingPoint num="6" id="3824" />
-<TGConnectingPoint num="7" id="3825" />
-<TGConnectingPoint num="8" id="3826" />
-<TGConnectingPoint num="9" id="3827" />
+<TGConnectingPoint num="0" id="3908" />
+<TGConnectingPoint num="1" id="3909" />
+<TGConnectingPoint num="2" id="3910" />
+<TGConnectingPoint num="3" id="3911" />
+<TGConnectingPoint num="4" id="3912" />
+<TGConnectingPoint num="5" id="3913" />
+<TGConnectingPoint num="6" id="3914" />
+<TGConnectingPoint num="7" id="3915" />
+<TGConnectingPoint num="8" id="3916" />
+<TGConnectingPoint num="9" id="3917" />
 <accessibility />
 </COMPONENT>
 
-<COMPONENT type="5104" id="3839" >
+<COMPONENT type="5104" id="3929" >
 <cdparam x="634" y="36" />
 <sizeparam width="55" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="open()" />
-<TGConnectingPoint num="0" id="3829" />
-<TGConnectingPoint num="1" id="3830" />
-<TGConnectingPoint num="2" id="3831" />
-<TGConnectingPoint num="3" id="3832" />
-<TGConnectingPoint num="4" id="3833" />
-<TGConnectingPoint num="5" id="3834" />
-<TGConnectingPoint num="6" id="3835" />
-<TGConnectingPoint num="7" id="3836" />
-<TGConnectingPoint num="8" id="3837" />
-<TGConnectingPoint num="9" id="3838" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="3880" >
+<TGConnectingPoint num="0" id="3919" />
+<TGConnectingPoint num="1" id="3920" />
+<TGConnectingPoint num="2" id="3921" />
+<TGConnectingPoint num="3" id="3922" />
+<TGConnectingPoint num="4" id="3923" />
+<TGConnectingPoint num="5" id="3924" />
+<TGConnectingPoint num="6" id="3925" />
+<TGConnectingPoint num="7" id="3926" />
+<TGConnectingPoint num="8" id="3927" />
+<TGConnectingPoint num="9" id="3928" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="3970" >
 <cdparam x="389" y="119" />
 <sizeparam width="82" height="45" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="state1" value="Idle" />
-<TGConnectingPoint num="0" id="3840" />
-<TGConnectingPoint num="1" id="3841" />
-<TGConnectingPoint num="2" id="3842" />
-<TGConnectingPoint num="3" id="3843" />
-<TGConnectingPoint num="4" id="3844" />
-<TGConnectingPoint num="5" id="3845" />
-<TGConnectingPoint num="6" id="3846" />
-<TGConnectingPoint num="7" id="3847" />
-<TGConnectingPoint num="8" id="3848" />
-<TGConnectingPoint num="9" id="3849" />
-<TGConnectingPoint num="10" id="3850" />
-<TGConnectingPoint num="11" id="3851" />
-<TGConnectingPoint num="12" id="3852" />
-<TGConnectingPoint num="13" id="3853" />
-<TGConnectingPoint num="14" id="3854" />
-<TGConnectingPoint num="15" id="3855" />
-<TGConnectingPoint num="16" id="3856" />
-<TGConnectingPoint num="17" id="3857" />
-<TGConnectingPoint num="18" id="3858" />
-<TGConnectingPoint num="19" id="3859" />
-<TGConnectingPoint num="20" id="3860" />
-<TGConnectingPoint num="21" id="3861" />
-<TGConnectingPoint num="22" id="3862" />
-<TGConnectingPoint num="23" id="3863" />
-<TGConnectingPoint num="24" id="3864" />
-<TGConnectingPoint num="25" id="3865" />
-<TGConnectingPoint num="26" id="3866" />
-<TGConnectingPoint num="27" id="3867" />
-<TGConnectingPoint num="28" id="3868" />
-<TGConnectingPoint num="29" id="3869" />
-<TGConnectingPoint num="30" id="3870" />
-<TGConnectingPoint num="31" id="3871" />
-<TGConnectingPoint num="32" id="3872" />
-<TGConnectingPoint num="33" id="3873" />
-<TGConnectingPoint num="34" id="3874" />
-<TGConnectingPoint num="35" id="3875" />
-<TGConnectingPoint num="36" id="3876" />
-<TGConnectingPoint num="37" id="3877" />
-<TGConnectingPoint num="38" id="3878" />
-<TGConnectingPoint num="39" id="3879" />
+<TGConnectingPoint num="0" id="3930" />
+<TGConnectingPoint num="1" id="3931" />
+<TGConnectingPoint num="2" id="3932" />
+<TGConnectingPoint num="3" id="3933" />
+<TGConnectingPoint num="4" id="3934" />
+<TGConnectingPoint num="5" id="3935" />
+<TGConnectingPoint num="6" id="3936" />
+<TGConnectingPoint num="7" id="3937" />
+<TGConnectingPoint num="8" id="3938" />
+<TGConnectingPoint num="9" id="3939" />
+<TGConnectingPoint num="10" id="3940" />
+<TGConnectingPoint num="11" id="3941" />
+<TGConnectingPoint num="12" id="3942" />
+<TGConnectingPoint num="13" id="3943" />
+<TGConnectingPoint num="14" id="3944" />
+<TGConnectingPoint num="15" id="3945" />
+<TGConnectingPoint num="16" id="3946" />
+<TGConnectingPoint num="17" id="3947" />
+<TGConnectingPoint num="18" id="3948" />
+<TGConnectingPoint num="19" id="3949" />
+<TGConnectingPoint num="20" id="3950" />
+<TGConnectingPoint num="21" id="3951" />
+<TGConnectingPoint num="22" id="3952" />
+<TGConnectingPoint num="23" id="3953" />
+<TGConnectingPoint num="24" id="3954" />
+<TGConnectingPoint num="25" id="3955" />
+<TGConnectingPoint num="26" id="3956" />
+<TGConnectingPoint num="27" id="3957" />
+<TGConnectingPoint num="28" id="3958" />
+<TGConnectingPoint num="29" id="3959" />
+<TGConnectingPoint num="30" id="3960" />
+<TGConnectingPoint num="31" id="3961" />
+<TGConnectingPoint num="32" id="3962" />
+<TGConnectingPoint num="33" id="3963" />
+<TGConnectingPoint num="34" id="3964" />
+<TGConnectingPoint num="35" id="3965" />
+<TGConnectingPoint num="36" id="3966" />
+<TGConnectingPoint num="37" id="3967" />
+<TGConnectingPoint num="38" id="3968" />
+<TGConnectingPoint num="39" id="3969" />
 <breakpoint />
 <extraparam>
 </extraparam>
 </COMPONENT>
 
-<COMPONENT type="5104" id="3891" >
+<COMPONENT type="5104" id="3981" >
 <cdparam x="442" y="183" />
 <sizeparam width="100" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="start(duration)" />
-<TGConnectingPoint num="0" id="3881" />
-<TGConnectingPoint num="1" id="3882" />
-<TGConnectingPoint num="2" id="3883" />
-<TGConnectingPoint num="3" id="3884" />
-<TGConnectingPoint num="4" id="3885" />
-<TGConnectingPoint num="5" id="3886" />
-<TGConnectingPoint num="6" id="3887" />
-<TGConnectingPoint num="7" id="3888" />
-<TGConnectingPoint num="8" id="3889" />
-<TGConnectingPoint num="9" id="3890" />
-</COMPONENT>
-
-<COMPONENT type="5100" id="3893" >
+<TGConnectingPoint num="0" id="3971" />
+<TGConnectingPoint num="1" id="3972" />
+<TGConnectingPoint num="2" id="3973" />
+<TGConnectingPoint num="3" id="3974" />
+<TGConnectingPoint num="4" id="3975" />
+<TGConnectingPoint num="5" id="3976" />
+<TGConnectingPoint num="6" id="3977" />
+<TGConnectingPoint num="7" id="3978" />
+<TGConnectingPoint num="8" id="3979" />
+<TGConnectingPoint num="9" id="3980" />
+</COMPONENT>
+
+<COMPONENT type="5100" id="3983" >
 <cdparam x="423" y="80" />
 <sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="start state" value="null" />
-<TGConnectingPoint num="0" id="3892" />
+<TGConnectingPoint num="0" id="3982" />
 </COMPONENT>
 
-<COMPONENT type="5103" id="3904" >
+<COMPONENT type="5103" id="3994" >
 <cdparam x="619" y="350" />
 <sizeparam width="104" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="stopMagnetron()" />
-<TGConnectingPoint num="0" id="3894" />
-<TGConnectingPoint num="1" id="3895" />
-<TGConnectingPoint num="2" id="3896" />
-<TGConnectingPoint num="3" id="3897" />
-<TGConnectingPoint num="4" id="3898" />
-<TGConnectingPoint num="5" id="3899" />
-<TGConnectingPoint num="6" id="3900" />
-<TGConnectingPoint num="7" id="3901" />
-<TGConnectingPoint num="8" id="3902" />
-<TGConnectingPoint num="9" id="3903" />
-</COMPONENT>
-
-<COMPONENT type="5103" id="3915" >
+<TGConnectingPoint num="0" id="3984" />
+<TGConnectingPoint num="1" id="3985" />
+<TGConnectingPoint num="2" id="3986" />
+<TGConnectingPoint num="3" id="3987" />
+<TGConnectingPoint num="4" id="3988" />
+<TGConnectingPoint num="5" id="3989" />
+<TGConnectingPoint num="6" id="3990" />
+<TGConnectingPoint num="7" id="3991" />
+<TGConnectingPoint num="8" id="3992" />
+<TGConnectingPoint num="9" id="3993" />
+</COMPONENT>
+
+<COMPONENT type="5103" id="4005" >
 <cdparam x="376" y="512" />
 <sizeparam width="104" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="stopMagnetron()" />
-<TGConnectingPoint num="0" id="3905" />
-<TGConnectingPoint num="1" id="3906" />
-<TGConnectingPoint num="2" id="3907" />
-<TGConnectingPoint num="3" id="3908" />
-<TGConnectingPoint num="4" id="3909" />
-<TGConnectingPoint num="5" id="3910" />
-<TGConnectingPoint num="6" id="3911" />
-<TGConnectingPoint num="7" id="3912" />
-<TGConnectingPoint num="8" id="3913" />
-<TGConnectingPoint num="9" id="3914" />
-</COMPONENT>
-
-<COMPONENT type="5103" id="3926" >
+<TGConnectingPoint num="0" id="3995" />
+<TGConnectingPoint num="1" id="3996" />
+<TGConnectingPoint num="2" id="3997" />
+<TGConnectingPoint num="3" id="3998" />
+<TGConnectingPoint num="4" id="3999" />
+<TGConnectingPoint num="5" id="4000" />
+<TGConnectingPoint num="6" id="4001" />
+<TGConnectingPoint num="7" id="4002" />
+<TGConnectingPoint num="8" id="4003" />
+<TGConnectingPoint num="9" id="4004" />
+</COMPONENT>
+
+<COMPONENT type="5103" id="4016" >
 <cdparam x="619" y="527" />
 <sizeparam width="105" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="startMagnetron()" />
-<TGConnectingPoint num="0" id="3916" />
-<TGConnectingPoint num="1" id="3917" />
-<TGConnectingPoint num="2" id="3918" />
-<TGConnectingPoint num="3" id="3919" />
-<TGConnectingPoint num="4" id="3920" />
-<TGConnectingPoint num="5" id="3921" />
-<TGConnectingPoint num="6" id="3922" />
-<TGConnectingPoint num="7" id="3923" />
-<TGConnectingPoint num="8" id="3924" />
-<TGConnectingPoint num="9" id="3925" />
-</COMPONENT>
-
-<COMPONENT type="5103" id="3937" >
+<TGConnectingPoint num="0" id="4006" />
+<TGConnectingPoint num="1" id="4007" />
+<TGConnectingPoint num="2" id="4008" />
+<TGConnectingPoint num="3" id="4009" />
+<TGConnectingPoint num="4" id="4010" />
+<TGConnectingPoint num="5" id="4011" />
+<TGConnectingPoint num="6" id="4012" />
+<TGConnectingPoint num="7" id="4013" />
+<TGConnectingPoint num="8" id="4014" />
+<TGConnectingPoint num="9" id="4015" />
+</COMPONENT>
+
+<COMPONENT type="5103" id="4027" >
 <cdparam x="376" y="309" />
 <sizeparam width="105" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="startMagnetron()" />
-<TGConnectingPoint num="0" id="3927" />
-<TGConnectingPoint num="1" id="3928" />
-<TGConnectingPoint num="2" id="3929" />
-<TGConnectingPoint num="3" id="3930" />
-<TGConnectingPoint num="4" id="3931" />
-<TGConnectingPoint num="5" id="3932" />
-<TGConnectingPoint num="6" id="3933" />
-<TGConnectingPoint num="7" id="3934" />
-<TGConnectingPoint num="8" id="3935" />
-<TGConnectingPoint num="9" id="3936" />
-</COMPONENT>
-
-<COMPONENT type="5104" id="3948" >
+<TGConnectingPoint num="0" id="4017" />
+<TGConnectingPoint num="1" id="4018" />
+<TGConnectingPoint num="2" id="4019" />
+<TGConnectingPoint num="3" id="4020" />
+<TGConnectingPoint num="4" id="4021" />
+<TGConnectingPoint num="5" id="4022" />
+<TGConnectingPoint num="6" id="4023" />
+<TGConnectingPoint num="7" id="4024" />
+<TGConnectingPoint num="8" id="4025" />
+<TGConnectingPoint num="9" id="4026" />
+</COMPONENT>
+
+<COMPONENT type="5104" id="4038" >
 <cdparam x="640" y="460" />
 <sizeparam width="63" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="closed()" />
-<TGConnectingPoint num="0" id="3938" />
-<TGConnectingPoint num="1" id="3939" />
-<TGConnectingPoint num="2" id="3940" />
-<TGConnectingPoint num="3" id="3941" />
-<TGConnectingPoint num="4" id="3942" />
-<TGConnectingPoint num="5" id="3943" />
-<TGConnectingPoint num="6" id="3944" />
-<TGConnectingPoint num="7" id="3945" />
-<TGConnectingPoint num="8" id="3946" />
-<TGConnectingPoint num="9" id="3947" />
-</COMPONENT>
-
-<COMPONENT type="5104" id="3959" >
+<TGConnectingPoint num="0" id="4028" />
+<TGConnectingPoint num="1" id="4029" />
+<TGConnectingPoint num="2" id="4030" />
+<TGConnectingPoint num="3" id="4031" />
+<TGConnectingPoint num="4" id="4032" />
+<TGConnectingPoint num="5" id="4033" />
+<TGConnectingPoint num="6" id="4034" />
+<TGConnectingPoint num="7" id="4035" />
+<TGConnectingPoint num="8" id="4036" />
+<TGConnectingPoint num="9" id="4037" />
+</COMPONENT>
+
+<COMPONENT type="5104" id="4049" >
 <cdparam x="630" y="150" />
 <sizeparam width="63" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="closed()" />
-<TGConnectingPoint num="0" id="3949" />
-<TGConnectingPoint num="1" id="3950" />
-<TGConnectingPoint num="2" id="3951" />
-<TGConnectingPoint num="3" id="3952" />
-<TGConnectingPoint num="4" id="3953" />
-<TGConnectingPoint num="5" id="3954" />
-<TGConnectingPoint num="6" id="3955" />
-<TGConnectingPoint num="7" id="3956" />
-<TGConnectingPoint num="8" id="3957" />
-<TGConnectingPoint num="9" id="3958" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="4000" >
+<TGConnectingPoint num="0" id="4039" />
+<TGConnectingPoint num="1" id="4040" />
+<TGConnectingPoint num="2" id="4041" />
+<TGConnectingPoint num="3" id="4042" />
+<TGConnectingPoint num="4" id="4043" />
+<TGConnectingPoint num="5" id="4044" />
+<TGConnectingPoint num="6" id="4045" />
+<TGConnectingPoint num="7" id="4046" />
+<TGConnectingPoint num="8" id="4047" />
+<TGConnectingPoint num="9" id="4048" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="4090" >
 <cdparam x="603" y="106" />
 <sizeparam width="116" height="35" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="state0" value="DoorOpened" />
-<TGConnectingPoint num="0" id="3960" />
-<TGConnectingPoint num="1" id="3961" />
-<TGConnectingPoint num="2" id="3962" />
-<TGConnectingPoint num="3" id="3963" />
-<TGConnectingPoint num="4" id="3964" />
-<TGConnectingPoint num="5" id="3965" />
-<TGConnectingPoint num="6" id="3966" />
-<TGConnectingPoint num="7" id="3967" />
-<TGConnectingPoint num="8" id="3968" />
-<TGConnectingPoint num="9" id="3969" />
-<TGConnectingPoint num="10" id="3970" />
-<TGConnectingPoint num="11" id="3971" />
-<TGConnectingPoint num="12" id="3972" />
-<TGConnectingPoint num="13" id="3973" />
-<TGConnectingPoint num="14" id="3974" />
-<TGConnectingPoint num="15" id="3975" />
-<TGConnectingPoint num="16" id="3976" />
-<TGConnectingPoint num="17" id="3977" />
-<TGConnectingPoint num="18" id="3978" />
-<TGConnectingPoint num="19" id="3979" />
-<TGConnectingPoint num="20" id="3980" />
-<TGConnectingPoint num="21" id="3981" />
-<TGConnectingPoint num="22" id="3982" />
-<TGConnectingPoint num="23" id="3983" />
-<TGConnectingPoint num="24" id="3984" />
-<TGConnectingPoint num="25" id="3985" />
-<TGConnectingPoint num="26" id="3986" />
-<TGConnectingPoint num="27" id="3987" />
-<TGConnectingPoint num="28" id="3988" />
-<TGConnectingPoint num="29" id="3989" />
-<TGConnectingPoint num="30" id="3990" />
-<TGConnectingPoint num="31" id="3991" />
-<TGConnectingPoint num="32" id="3992" />
-<TGConnectingPoint num="33" id="3993" />
-<TGConnectingPoint num="34" id="3994" />
-<TGConnectingPoint num="35" id="3995" />
-<TGConnectingPoint num="36" id="3996" />
-<TGConnectingPoint num="37" id="3997" />
-<TGConnectingPoint num="38" id="3998" />
-<TGConnectingPoint num="39" id="3999" />
-<extraparam>
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="5106" id="4041" >
+<TGConnectingPoint num="0" id="4050" />
+<TGConnectingPoint num="1" id="4051" />
+<TGConnectingPoint num="2" id="4052" />
+<TGConnectingPoint num="3" id="4053" />
+<TGConnectingPoint num="4" id="4054" />
+<TGConnectingPoint num="5" id="4055" />
+<TGConnectingPoint num="6" id="4056" />
+<TGConnectingPoint num="7" id="4057" />
+<TGConnectingPoint num="8" id="4058" />
+<TGConnectingPoint num="9" id="4059" />
+<TGConnectingPoint num="10" id="4060" />
+<TGConnectingPoint num="11" id="4061" />
+<TGConnectingPoint num="12" id="4062" />
+<TGConnectingPoint num="13" id="4063" />
+<TGConnectingPoint num="14" id="4064" />
+<TGConnectingPoint num="15" id="4065" />
+<TGConnectingPoint num="16" id="4066" />
+<TGConnectingPoint num="17" id="4067" />
+<TGConnectingPoint num="18" id="4068" />
+<TGConnectingPoint num="19" id="4069" />
+<TGConnectingPoint num="20" id="4070" />
+<TGConnectingPoint num="21" id="4071" />
+<TGConnectingPoint num="22" id="4072" />
+<TGConnectingPoint num="23" id="4073" />
+<TGConnectingPoint num="24" id="4074" />
+<TGConnectingPoint num="25" id="4075" />
+<TGConnectingPoint num="26" id="4076" />
+<TGConnectingPoint num="27" id="4077" />
+<TGConnectingPoint num="28" id="4078" />
+<TGConnectingPoint num="29" id="4079" />
+<TGConnectingPoint num="30" id="4080" />
+<TGConnectingPoint num="31" id="4081" />
+<TGConnectingPoint num="32" id="4082" />
+<TGConnectingPoint num="33" id="4083" />
+<TGConnectingPoint num="34" id="4084" />
+<TGConnectingPoint num="35" id="4085" />
+<TGConnectingPoint num="36" id="4086" />
+<TGConnectingPoint num="37" id="4087" />
+<TGConnectingPoint num="38" id="4088" />
+<TGConnectingPoint num="39" id="4089" />
+<extraparam>
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="5106" id="4131" >
 <cdparam x="571" y="393" />
 <sizeparam width="200" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="state0" value="DoorOpenedWhileHeating" />
-<TGConnectingPoint num="0" id="4001" />
-<TGConnectingPoint num="1" id="4002" />
-<TGConnectingPoint num="2" id="4003" />
-<TGConnectingPoint num="3" id="4004" />
-<TGConnectingPoint num="4" id="4005" />
-<TGConnectingPoint num="5" id="4006" />
-<TGConnectingPoint num="6" id="4007" />
-<TGConnectingPoint num="7" id="4008" />
-<TGConnectingPoint num="8" id="4009" />
-<TGConnectingPoint num="9" id="4010" />
-<TGConnectingPoint num="10" id="4011" />
-<TGConnectingPoint num="11" id="4012" />
-<TGConnectingPoint num="12" id="4013" />
-<TGConnectingPoint num="13" id="4014" />
-<TGConnectingPoint num="14" id="4015" />
-<TGConnectingPoint num="15" id="4016" />
-<TGConnectingPoint num="16" id="4017" />
-<TGConnectingPoint num="17" id="4018" />
-<TGConnectingPoint num="18" id="4019" />
-<TGConnectingPoint num="19" id="4020" />
-<TGConnectingPoint num="20" id="4021" />
-<TGConnectingPoint num="21" id="4022" />
-<TGConnectingPoint num="22" id="4023" />
-<TGConnectingPoint num="23" id="4024" />
-<TGConnectingPoint num="24" id="4025" />
-<TGConnectingPoint num="25" id="4026" />
-<TGConnectingPoint num="26" id="4027" />
-<TGConnectingPoint num="27" id="4028" />
-<TGConnectingPoint num="28" id="4029" />
-<TGConnectingPoint num="29" id="4030" />
-<TGConnectingPoint num="30" id="4031" />
-<TGConnectingPoint num="31" id="4032" />
-<TGConnectingPoint num="32" id="4033" />
-<TGConnectingPoint num="33" id="4034" />
-<TGConnectingPoint num="34" id="4035" />
-<TGConnectingPoint num="35" id="4036" />
-<TGConnectingPoint num="36" id="4037" />
-<TGConnectingPoint num="37" id="4038" />
-<TGConnectingPoint num="38" id="4039" />
-<TGConnectingPoint num="39" id="4040" />
+<TGConnectingPoint num="0" id="4091" />
+<TGConnectingPoint num="1" id="4092" />
+<TGConnectingPoint num="2" id="4093" />
+<TGConnectingPoint num="3" id="4094" />
+<TGConnectingPoint num="4" id="4095" />
+<TGConnectingPoint num="5" id="4096" />
+<TGConnectingPoint num="6" id="4097" />
+<TGConnectingPoint num="7" id="4098" />
+<TGConnectingPoint num="8" id="4099" />
+<TGConnectingPoint num="9" id="4100" />
+<TGConnectingPoint num="10" id="4101" />
+<TGConnectingPoint num="11" id="4102" />
+<TGConnectingPoint num="12" id="4103" />
+<TGConnectingPoint num="13" id="4104" />
+<TGConnectingPoint num="14" id="4105" />
+<TGConnectingPoint num="15" id="4106" />
+<TGConnectingPoint num="16" id="4107" />
+<TGConnectingPoint num="17" id="4108" />
+<TGConnectingPoint num="18" id="4109" />
+<TGConnectingPoint num="19" id="4110" />
+<TGConnectingPoint num="20" id="4111" />
+<TGConnectingPoint num="21" id="4112" />
+<TGConnectingPoint num="22" id="4113" />
+<TGConnectingPoint num="23" id="4114" />
+<TGConnectingPoint num="24" id="4115" />
+<TGConnectingPoint num="25" id="4116" />
+<TGConnectingPoint num="26" id="4117" />
+<TGConnectingPoint num="27" id="4118" />
+<TGConnectingPoint num="28" id="4119" />
+<TGConnectingPoint num="29" id="4120" />
+<TGConnectingPoint num="30" id="4121" />
+<TGConnectingPoint num="31" id="4122" />
+<TGConnectingPoint num="32" id="4123" />
+<TGConnectingPoint num="33" id="4124" />
+<TGConnectingPoint num="34" id="4125" />
+<TGConnectingPoint num="35" id="4126" />
+<TGConnectingPoint num="36" id="4127" />
+<TGConnectingPoint num="37" id="4128" />
+<TGConnectingPoint num="38" id="4129" />
+<TGConnectingPoint num="39" id="4130" />
 <breakpoint />
 <extraparam>
 </extraparam>
 </COMPONENT>
 
-<COMPONENT type="5103" id="4052" >
+<COMPONENT type="5103" id="4142" >
 <cdparam x="362" y="355" />
 <sizeparam width="133" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="Send signal" value="obs_magnetronStart()" />
-<TGConnectingPoint num="0" id="4042" />
-<TGConnectingPoint num="1" id="4043" />
-<TGConnectingPoint num="2" id="4044" />
-<TGConnectingPoint num="3" id="4045" />
-<TGConnectingPoint num="4" id="4046" />
-<TGConnectingPoint num="5" id="4047" />
-<TGConnectingPoint num="6" id="4048" />
-<TGConnectingPoint num="7" id="4049" />
-<TGConnectingPoint num="8" id="4050" />
-<TGConnectingPoint num="9" id="4051" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="4093" >
+<TGConnectingPoint num="0" id="4132" />
+<TGConnectingPoint num="1" id="4133" />
+<TGConnectingPoint num="2" id="4134" />
+<TGConnectingPoint num="3" id="4135" />
+<TGConnectingPoint num="4" id="4136" />
+<TGConnectingPoint num="5" id="4137" />
+<TGConnectingPoint num="6" id="4138" />
+<TGConnectingPoint num="7" id="4139" />
+<TGConnectingPoint num="8" id="4140" />
+<TGConnectingPoint num="9" id="4141" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="4183" >
 <cdparam x="251" y="240" />
 <sizeparam width="543" height="394" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="state0" value="Heating" />
-<TGConnectingPoint num="0" id="4053" />
-<TGConnectingPoint num="1" id="4054" />
-<TGConnectingPoint num="2" id="4055" />
-<TGConnectingPoint num="3" id="4056" />
-<TGConnectingPoint num="4" id="4057" />
-<TGConnectingPoint num="5" id="4058" />
-<TGConnectingPoint num="6" id="4059" />
-<TGConnectingPoint num="7" id="4060" />
-<TGConnectingPoint num="8" id="4061" />
-<TGConnectingPoint num="9" id="4062" />
-<TGConnectingPoint num="10" id="4063" />
-<TGConnectingPoint num="11" id="4064" />
-<TGConnectingPoint num="12" id="4065" />
-<TGConnectingPoint num="13" id="4066" />
-<TGConnectingPoint num="14" id="4067" />
-<TGConnectingPoint num="15" id="4068" />
-<TGConnectingPoint num="16" id="4069" />
-<TGConnectingPoint num="17" id="4070" />
-<TGConnectingPoint num="18" id="4071" />
-<TGConnectingPoint num="19" id="4072" />
-<TGConnectingPoint num="20" id="4073" />
-<TGConnectingPoint num="21" id="4074" />
-<TGConnectingPoint num="22" id="4075" />
-<TGConnectingPoint num="23" id="4076" />
-<TGConnectingPoint num="24" id="4077" />
-<TGConnectingPoint num="25" id="4078" />
-<TGConnectingPoint num="26" id="4079" />
-<TGConnectingPoint num="27" id="4080" />
-<TGConnectingPoint num="28" id="4081" />
-<TGConnectingPoint num="29" id="4082" />
-<TGConnectingPoint num="30" id="4083" />
-<TGConnectingPoint num="31" id="4084" />
-<TGConnectingPoint num="32" id="4085" />
-<TGConnectingPoint num="33" id="4086" />
-<TGConnectingPoint num="34" id="4087" />
-<TGConnectingPoint num="35" id="4088" />
-<TGConnectingPoint num="36" id="4089" />
-<TGConnectingPoint num="37" id="4090" />
-<TGConnectingPoint num="38" id="4091" />
-<TGConnectingPoint num="39" id="4092" />
+<TGConnectingPoint num="0" id="4143" />
+<TGConnectingPoint num="1" id="4144" />
+<TGConnectingPoint num="2" id="4145" />
+<TGConnectingPoint num="3" id="4146" />
+<TGConnectingPoint num="4" id="4147" />
+<TGConnectingPoint num="5" id="4148" />
+<TGConnectingPoint num="6" id="4149" />
+<TGConnectingPoint num="7" id="4150" />
+<TGConnectingPoint num="8" id="4151" />
+<TGConnectingPoint num="9" id="4152" />
+<TGConnectingPoint num="10" id="4153" />
+<TGConnectingPoint num="11" id="4154" />
+<TGConnectingPoint num="12" id="4155" />
+<TGConnectingPoint num="13" id="4156" />
+<TGConnectingPoint num="14" id="4157" />
+<TGConnectingPoint num="15" id="4158" />
+<TGConnectingPoint num="16" id="4159" />
+<TGConnectingPoint num="17" id="4160" />
+<TGConnectingPoint num="18" id="4161" />
+<TGConnectingPoint num="19" id="4162" />
+<TGConnectingPoint num="20" id="4163" />
+<TGConnectingPoint num="21" id="4164" />
+<TGConnectingPoint num="22" id="4165" />
+<TGConnectingPoint num="23" id="4166" />
+<TGConnectingPoint num="24" id="4167" />
+<TGConnectingPoint num="25" id="4168" />
+<TGConnectingPoint num="26" id="4169" />
+<TGConnectingPoint num="27" id="4170" />
+<TGConnectingPoint num="28" id="4171" />
+<TGConnectingPoint num="29" id="4172" />
+<TGConnectingPoint num="30" id="4173" />
+<TGConnectingPoint num="31" id="4174" />
+<TGConnectingPoint num="32" id="4175" />
+<TGConnectingPoint num="33" id="4176" />
+<TGConnectingPoint num="34" id="4177" />
+<TGConnectingPoint num="35" id="4178" />
+<TGConnectingPoint num="36" id="4179" />
+<TGConnectingPoint num="37" id="4180" />
+<TGConnectingPoint num="38" id="4181" />
+<TGConnectingPoint num="39" id="4182" />
 <extraparam>
 </extraparam>
 </COMPONENT>
@@ -8520,87 +8704,58 @@ or by a maintenance station
 
 </AVATARStateMachineDiagramPanel>
 
-<AVATARStateMachineDiagramPanel name="Magnetron" minX="10" maxX="1400" minY="10" maxY="900" >
-<CONNECTOR type="5102" id="4106" >
-<cdparam x="407" y="380" />
+<AVATARStateMachineDiagramPanel name="ControlPanel" minX="10" maxX="1400" minY="10" maxY="900" >
+<CONNECTOR type="5102" id="4196" >
+<cdparam x="504" y="232" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="4102" />
-<TGConnectingPoint num="1" id="4103" />
-<TGConnectingPoint num="2" id="4104" />
-<TGConnectingPoint num="3" id="4105" />
-<P1  x="407" y="310" id="4136" />
-<P2  x="365" y="113" id="4203" />
-<Point x="407" y="327" />
-<Point x="323" y="327" />
-<Point x="323" y="113" />
+<TGConnectingPoint num="0" id="4192" />
+<TGConnectingPoint num="1" id="4193" />
+<TGConnectingPoint num="2" id="4194" />
+<TGConnectingPoint num="3" id="4195" />
+<P1  x="504" y="232" id="4255" />
+<P2  x="454" y="123" id="4216" />
+<Point x="503" y="254" />
+<Point x="425" y="254" />
+<Point x="426" y="123" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4094" >
-<father id="4106" num="0" />
-<cdparam x="407" y="327" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4184" >
+<father id="4196" num="0" />
+<cdparam x="503" y="254" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="4095" >
-<father id="4106" num="1" />
-<cdparam x="323" y="327" />
+<SUBCOMPONENT type="-1" id="4185" >
+<father id="4196" num="1" />
+<cdparam x="425" y="254" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="4096" >
-<father id="4106" num="2" />
-<cdparam x="323" y="113" />
+<SUBCOMPONENT type="-1" id="4186" >
+<father id="4196" num="2" />
+<cdparam x="426" y="123" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="4101" >
-<father id="4106" num="3" />
-<cdparam x="418" y="343" />
-<sizeparam width="29" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4097" />
-<TGConnectingPoint num="1" id="4098" />
-<TGConnectingPoint num="2" id="4099" />
-<TGConnectingPoint num="3" id="4100" />
-<extraparam>
-<guard value="[ ]" />
-<afterMin value="" />
-<afterMax value="" />
-<computeMin value="" />
-<computeMax value="" />
-<actions value="OFF()" />
-</extraparam>
-</SUBCOMPONENT>
-
-<CONNECTOR type="5102" id="4113" >
-<cdparam x="411" y="243" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from state1 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="4112" />
-<P1  x="408" y="242" id="4152" />
-<P2  x="407" y="280" id="4135" />
-<AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4111" >
-<father id="4113" num="0" />
-<cdparam x="411" y="283" />
-<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<SUBCOMPONENT type="-1" id="4191" >
+<father id="4196" num="3" />
+<cdparam x="465" y="275" />
+<sizeparam width="100" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4107" />
-<TGConnectingPoint num="1" id="4108" />
-<TGConnectingPoint num="2" id="4109" />
-<TGConnectingPoint num="3" id="4110" />
+<TGConnectingPoint num="0" id="4187" />
+<TGConnectingPoint num="1" id="4188" />
+<TGConnectingPoint num="2" id="4189" />
+<TGConnectingPoint num="3" id="4190" />
 <extraparam>
-<guard value="[ ]" />
+<guard value="[  ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
@@ -8608,54 +8763,35 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="4120" >
-<cdparam x="398" y="183" />
+<CONNECTOR type="5102" id="4205" >
+<cdparam x="504" y="148" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from Send signal to state1" value="null" />
-<TGConnectingPoint num="0" id="4119" />
-<P1  x="407" y="183" id="4188" />
-<P2  x="408" y="202" id="4147" />
+<infoparam name="connector from state0 to Send signal" value="null" />
+<TGConnectingPoint num="0" id="4203" />
+<TGConnectingPoint num="1" id="4204" />
+<P1  x="504" y="148" id="4219" />
+<P2  x="504" y="202" id="4254" />
+<Point x="504" y="175" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4118" >
-<father id="4120" num="0" />
-<cdparam x="417" y="195" />
-<sizeparam width="26" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4197" >
+<father id="4205" num="0" />
+<cdparam x="504" y="175" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4114" />
-<TGConnectingPoint num="1" id="4115" />
-<TGConnectingPoint num="2" id="4116" />
-<TGConnectingPoint num="3" id="4117" />
-<extraparam>
-<guard value="[ ]" />
-<afterMin value="" />
-<afterMax value="" />
-<computeMin value="" />
-<computeMax value="" />
-<actions value="ON()" />
-</extraparam>
+<infoparam name="point " value="null" />
 </SUBCOMPONENT>
-
-<CONNECTOR type="5102" id="4127" >
-<cdparam x="393" y="131" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from state0 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="4126" />
-<P1  x="407" y="131" id="4206" />
-<P2  x="407" y="153" id="4187" />
-<AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4125" >
-<father id="4127" num="0" />
-<cdparam x="393" y="171" />
+<SUBCOMPONENT type="-1" id="4202" >
+<father id="4205" num="1" />
+<cdparam x="504" y="188" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4121" />
-<TGConnectingPoint num="1" id="4122" />
-<TGConnectingPoint num="2" id="4123" />
-<TGConnectingPoint num="3" id="4124" />
+<TGConnectingPoint num="0" id="4198" />
+<TGConnectingPoint num="1" id="4199" />
+<TGConnectingPoint num="2" id="4200" />
+<TGConnectingPoint num="3" id="4201" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -8665,25 +8801,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="4134" >
-<cdparam x="407" y="70" />
+<CONNECTOR type="5102" id="4212" >
+<cdparam x="385" y="75" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from start state to state0" value="null" />
-<TGConnectingPoint num="0" id="4133" />
-<P1  x="407" y="70" id="4198" />
-<P2  x="407" y="96" id="4201" />
+<TGConnectingPoint num="0" id="4211" />
+<P1  x="481" y="74" id="4265" />
+<P2  x="504" y="98" id="4214" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4132" >
-<father id="4134" num="0" />
-<cdparam x="407" y="110" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4210" >
+<father id="4212" num="0" />
+<cdparam x="385" y="115" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4128" />
-<TGConnectingPoint num="1" id="4129" />
-<TGConnectingPoint num="2" id="4130" />
-<TGConnectingPoint num="3" id="4131" />
+<TGConnectingPoint num="0" id="4206" />
+<TGConnectingPoint num="1" id="4207" />
+<TGConnectingPoint num="2" id="4208" />
+<TGConnectingPoint num="3" id="4209" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -8693,320 +8829,221 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<COMPONENT type="5104" id="4145" >
-<cdparam x="377" y="285" />
-<sizeparam width="61" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Send signal" value="stopM()" />
-<TGConnectingPoint num="0" id="4135" />
-<TGConnectingPoint num="1" id="4136" />
-<TGConnectingPoint num="2" id="4137" />
-<TGConnectingPoint num="3" id="4138" />
-<TGConnectingPoint num="4" id="4139" />
-<TGConnectingPoint num="5" id="4140" />
-<TGConnectingPoint num="6" id="4141" />
-<TGConnectingPoint num="7" id="4142" />
-<TGConnectingPoint num="8" id="4143" />
-<TGConnectingPoint num="9" id="4144" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="4186" >
-<cdparam x="373" y="202" />
-<sizeparam width="71" height="40" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<COMPONENT type="5106" id="4253" >
+<cdparam x="454" y="98" />
+<sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state1" value="Running" />
-<TGConnectingPoint num="0" id="4146" />
-<TGConnectingPoint num="1" id="4147" />
-<TGConnectingPoint num="2" id="4148" />
-<TGConnectingPoint num="3" id="4149" />
-<TGConnectingPoint num="4" id="4150" />
-<TGConnectingPoint num="5" id="4151" />
-<TGConnectingPoint num="6" id="4152" />
-<TGConnectingPoint num="7" id="4153" />
-<TGConnectingPoint num="8" id="4154" />
-<TGConnectingPoint num="9" id="4155" />
-<TGConnectingPoint num="10" id="4156" />
-<TGConnectingPoint num="11" id="4157" />
-<TGConnectingPoint num="12" id="4158" />
-<TGConnectingPoint num="13" id="4159" />
-<TGConnectingPoint num="14" id="4160" />
-<TGConnectingPoint num="15" id="4161" />
-<TGConnectingPoint num="16" id="4162" />
-<TGConnectingPoint num="17" id="4163" />
-<TGConnectingPoint num="18" id="4164" />
-<TGConnectingPoint num="19" id="4165" />
-<TGConnectingPoint num="20" id="4166" />
-<TGConnectingPoint num="21" id="4167" />
-<TGConnectingPoint num="22" id="4168" />
-<TGConnectingPoint num="23" id="4169" />
-<TGConnectingPoint num="24" id="4170" />
-<TGConnectingPoint num="25" id="4171" />
-<TGConnectingPoint num="26" id="4172" />
-<TGConnectingPoint num="27" id="4173" />
-<TGConnectingPoint num="28" id="4174" />
-<TGConnectingPoint num="29" id="4175" />
-<TGConnectingPoint num="30" id="4176" />
-<TGConnectingPoint num="31" id="4177" />
-<TGConnectingPoint num="32" id="4178" />
-<TGConnectingPoint num="33" id="4179" />
-<TGConnectingPoint num="34" id="4180" />
-<TGConnectingPoint num="35" id="4181" />
-<TGConnectingPoint num="36" id="4182" />
-<TGConnectingPoint num="37" id="4183" />
-<TGConnectingPoint num="38" id="4184" />
-<TGConnectingPoint num="39" id="4185" />
-<extraparam>
-<entryCode value="printf(&quot;DANGER: Magnetron is ON\n&quot;);" />
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="5104" id="4197" >
-<cdparam x="376" y="158" />
-<sizeparam width="62" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="state0" value="Active" />
+<TGConnectingPoint num="0" id="4213" />
+<TGConnectingPoint num="1" id="4214" />
+<TGConnectingPoint num="2" id="4215" />
+<TGConnectingPoint num="3" id="4216" />
+<TGConnectingPoint num="4" id="4217" />
+<TGConnectingPoint num="5" id="4218" />
+<TGConnectingPoint num="6" id="4219" />
+<TGConnectingPoint num="7" id="4220" />
+<TGConnectingPoint num="8" id="4221" />
+<TGConnectingPoint num="9" id="4222" />
+<TGConnectingPoint num="10" id="4223" />
+<TGConnectingPoint num="11" id="4224" />
+<TGConnectingPoint num="12" id="4225" />
+<TGConnectingPoint num="13" id="4226" />
+<TGConnectingPoint num="14" id="4227" />
+<TGConnectingPoint num="15" id="4228" />
+<TGConnectingPoint num="16" id="4229" />
+<TGConnectingPoint num="17" id="4230" />
+<TGConnectingPoint num="18" id="4231" />
+<TGConnectingPoint num="19" id="4232" />
+<TGConnectingPoint num="20" id="4233" />
+<TGConnectingPoint num="21" id="4234" />
+<TGConnectingPoint num="22" id="4235" />
+<TGConnectingPoint num="23" id="4236" />
+<TGConnectingPoint num="24" id="4237" />
+<TGConnectingPoint num="25" id="4238" />
+<TGConnectingPoint num="26" id="4239" />
+<TGConnectingPoint num="27" id="4240" />
+<TGConnectingPoint num="28" id="4241" />
+<TGConnectingPoint num="29" id="4242" />
+<TGConnectingPoint num="30" id="4243" />
+<TGConnectingPoint num="31" id="4244" />
+<TGConnectingPoint num="32" id="4245" />
+<TGConnectingPoint num="33" id="4246" />
+<TGConnectingPoint num="34" id="4247" />
+<TGConnectingPoint num="35" id="4248" />
+<TGConnectingPoint num="36" id="4249" />
+<TGConnectingPoint num="37" id="4250" />
+<TGConnectingPoint num="38" id="4251" />
+<TGConnectingPoint num="39" id="4252" />
+<extraparam>
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="5103" id="4264" >
+<cdparam x="440" y="207" />
+<sizeparam width="128" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Send signal" value="startM()" />
-<TGConnectingPoint num="0" id="4187" />
-<TGConnectingPoint num="1" id="4188" />
-<TGConnectingPoint num="2" id="4189" />
-<TGConnectingPoint num="3" id="4190" />
-<TGConnectingPoint num="4" id="4191" />
-<TGConnectingPoint num="5" id="4192" />
-<TGConnectingPoint num="6" id="4193" />
-<TGConnectingPoint num="7" id="4194" />
-<TGConnectingPoint num="8" id="4195" />
-<TGConnectingPoint num="9" id="4196" />
-</COMPONENT>
-
-<COMPONENT type="5100" id="4199" >
-<cdparam x="400" y="50" />
+<infoparam name="Send signal" value="startButton(duration)" />
+<TGConnectingPoint num="0" id="4254" />
+<TGConnectingPoint num="1" id="4255" />
+<TGConnectingPoint num="2" id="4256" />
+<TGConnectingPoint num="3" id="4257" />
+<TGConnectingPoint num="4" id="4258" />
+<TGConnectingPoint num="5" id="4259" />
+<TGConnectingPoint num="6" id="4260" />
+<TGConnectingPoint num="7" id="4261" />
+<TGConnectingPoint num="8" id="4262" />
+<TGConnectingPoint num="9" id="4263" />
+</COMPONENT>
+
+<COMPONENT type="5100" id="4266" >
+<cdparam x="474" y="54" />
 <sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="start state" value="null" />
-<TGConnectingPoint num="0" id="4198" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="4240" >
-<cdparam x="365" y="96" />
-<sizeparam width="84" height="35" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="WaitForStart" />
-<TGConnectingPoint num="0" id="4200" />
-<TGConnectingPoint num="1" id="4201" />
-<TGConnectingPoint num="2" id="4202" />
-<TGConnectingPoint num="3" id="4203" />
-<TGConnectingPoint num="4" id="4204" />
-<TGConnectingPoint num="5" id="4205" />
-<TGConnectingPoint num="6" id="4206" />
-<TGConnectingPoint num="7" id="4207" />
-<TGConnectingPoint num="8" id="4208" />
-<TGConnectingPoint num="9" id="4209" />
-<TGConnectingPoint num="10" id="4210" />
-<TGConnectingPoint num="11" id="4211" />
-<TGConnectingPoint num="12" id="4212" />
-<TGConnectingPoint num="13" id="4213" />
-<TGConnectingPoint num="14" id="4214" />
-<TGConnectingPoint num="15" id="4215" />
-<TGConnectingPoint num="16" id="4216" />
-<TGConnectingPoint num="17" id="4217" />
-<TGConnectingPoint num="18" id="4218" />
-<TGConnectingPoint num="19" id="4219" />
-<TGConnectingPoint num="20" id="4220" />
-<TGConnectingPoint num="21" id="4221" />
-<TGConnectingPoint num="22" id="4222" />
-<TGConnectingPoint num="23" id="4223" />
-<TGConnectingPoint num="24" id="4224" />
-<TGConnectingPoint num="25" id="4225" />
-<TGConnectingPoint num="26" id="4226" />
-<TGConnectingPoint num="27" id="4227" />
-<TGConnectingPoint num="28" id="4228" />
-<TGConnectingPoint num="29" id="4229" />
-<TGConnectingPoint num="30" id="4230" />
-<TGConnectingPoint num="31" id="4231" />
-<TGConnectingPoint num="32" id="4232" />
-<TGConnectingPoint num="33" id="4233" />
-<TGConnectingPoint num="34" id="4234" />
-<TGConnectingPoint num="35" id="4235" />
-<TGConnectingPoint num="36" id="4236" />
-<TGConnectingPoint num="37" id="4237" />
-<TGConnectingPoint num="38" id="4238" />
-<TGConnectingPoint num="39" id="4239" />
-<extraparam>
-<entryCode value="printf(&quot;Magnetron is off\n&quot;);" />
-</extraparam>
+<TGConnectingPoint num="0" id="4265" />
 </COMPONENT>
 
 
 </AVATARStateMachineDiagramPanel>
 
-<AVATARStateMachineDiagramPanel name="Door" minX="10" maxX="1400" minY="10" maxY="900" >
-<CONNECTOR type="5102" id="4247" >
-<cdparam x="407" y="209" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector" value="null" />
-<TGConnectingPoint num="0" id="4246" />
-<P1  x="407" y="209" id="4335" />
-<P2  x="407" y="290" id="4283" />
+<AVATARStateMachineDiagramPanel name="Bell" minX="10" maxX="1400" minY="10" maxY="900" >
+<CONNECTOR type="5102" id="4273" >
+<cdparam x="419" y="209" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector from Send signal to state0" value="null" />
+<TGConnectingPoint num="0" id="4272" />
+<P1  x="419" y="209" id="4343" />
+<P2  x="419" y="313" id="4302" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4245" >
-<father id="4247" num="0" />
-<cdparam x="407" y="249" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4271" >
+<father id="4273" num="0" />
+<cdparam x="429" y="249" />
 <sizeparam width="47" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4241" />
-<TGConnectingPoint num="1" id="4242" />
-<TGConnectingPoint num="2" id="4243" />
-<TGConnectingPoint num="3" id="4244" />
+<TGConnectingPoint num="0" id="4267" />
+<TGConnectingPoint num="1" id="4268" />
+<TGConnectingPoint num="2" id="4269" />
+<TGConnectingPoint num="3" id="4270" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
-<actions value="openM()" />
-</extraparam>
-</SUBCOMPONENT>
-
-<CONNECTOR type="5102" id="4254" >
-<cdparam x="407" y="300" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from state0 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="4253" />
-<P1  x="407" y="340" id="4288" />
-<P2  x="407" y="374" id="4323" />
-<AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4252" >
-<father id="4254" num="0" />
-<cdparam x="414" y="365" />
-<sizeparam width="59" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4248" />
-<TGConnectingPoint num="1" id="4249" />
-<TGConnectingPoint num="2" id="4250" />
-<TGConnectingPoint num="3" id="4251" />
-<extraparam>
-<guard value="[ ]" />
-<afterMin value="2" />
-<afterMax value="3" />
-<computeMin value="" />
-<computeMax value="" />
+<actions value="runBell()" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="4267" >
-<cdparam x="407" y="277" />
+<CONNECTOR type="5102" id="4286" >
+<cdparam x="419" y="209" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from Send signal to state0" value="null" />
-<TGConnectingPoint num="0" id="4263" />
-<TGConnectingPoint num="1" id="4264" />
-<TGConnectingPoint num="2" id="4265" />
-<TGConnectingPoint num="3" id="4266" />
-<P1  x="407" y="404" id="4324" />
-<P2  x="357" y="125" id="4348" />
-<Point x="300" y="404" />
-<Point x="300" y="278" />
-<Point x="300" y="125" />
+<TGConnectingPoint num="0" id="4282" />
+<TGConnectingPoint num="1" id="4283" />
+<TGConnectingPoint num="2" id="4284" />
+<TGConnectingPoint num="3" id="4285" />
+<P1  x="419" y="363" id="4307" />
+<P2  x="369" y="123" id="4356" />
+<Point x="412" y="419" />
+<Point x="332" y="419" />
+<Point x="332" y="123" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4255" >
-<father id="4267" num="0" />
-<cdparam x="300" y="404" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4274" >
+<father id="4286" num="0" />
+<cdparam x="412" y="419" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="4256" >
-<father id="4267" num="1" />
-<cdparam x="300" y="278" />
+<SUBCOMPONENT type="-1" id="4275" >
+<father id="4286" num="1" />
+<cdparam x="332" y="419" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="4257" >
-<father id="4267" num="2" />
-<cdparam x="300" y="125" />
+<SUBCOMPONENT type="-1" id="4276" >
+<father id="4286" num="2" />
+<cdparam x="332" y="123" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="point " value="null" />
 </SUBCOMPONENT>
-<SUBCOMPONENT type="-1" id="4262" >
-<father id="4267" num="3" />
-<cdparam x="246" y="301" />
-<sizeparam width="47" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<SUBCOMPONENT type="-1" id="4281" >
+<father id="4286" num="3" />
+<cdparam x="430" y="402" />
+<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4258" />
-<TGConnectingPoint num="1" id="4259" />
-<TGConnectingPoint num="2" id="4260" />
-<TGConnectingPoint num="3" id="4261" />
+<TGConnectingPoint num="0" id="4277" />
+<TGConnectingPoint num="1" id="4278" />
+<TGConnectingPoint num="2" id="4279" />
+<TGConnectingPoint num="3" id="4280" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
-<actions value="closeM()" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="4274" >
-<cdparam x="407" y="150" />
+<CONNECTOR type="5102" id="4293" >
+<cdparam x="420" y="151" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from state0 to Send signal" value="null" />
-<TGConnectingPoint num="0" id="4273" />
-<P1  x="407" y="150" id="4351" />
-<P2  x="407" y="179" id="4334" />
+<TGConnectingPoint num="0" id="4292" />
+<P1  x="419" y="148" id="4359" />
+<P2  x="419" y="179" id="4342" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4272" >
-<father id="4274" num="0" />
-<cdparam x="412" y="172" />
-<sizeparam width="59" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4291" >
+<father id="4293" num="0" />
+<cdparam x="420" y="191" />
+<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4268" />
-<TGConnectingPoint num="1" id="4269" />
-<TGConnectingPoint num="2" id="4270" />
-<TGConnectingPoint num="3" id="4271" />
+<TGConnectingPoint num="0" id="4287" />
+<TGConnectingPoint num="1" id="4288" />
+<TGConnectingPoint num="2" id="4289" />
+<TGConnectingPoint num="3" id="4290" />
 <extraparam>
 <guard value="[ ]" />
-<afterMin value="2" />
-<afterMax value="3" />
+<afterMin value="" />
+<afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="4281" >
+<CONNECTOR type="5102" id="4300" >
 <cdparam x="407" y="70" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <infoparam name="connector from start state to state0" value="null" />
-<TGConnectingPoint num="0" id="4280" />
-<P1  x="407" y="70" id="4386" />
-<P2  x="407" y="100" id="4346" />
+<TGConnectingPoint num="0" id="4299" />
+<P1  x="407" y="70" id="4394" />
+<P2  x="419" y="98" id="4354" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4279" >
-<father id="4281" num="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4298" >
+<father id="4300" num="0" />
 <cdparam x="407" y="110" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4275" />
-<TGConnectingPoint num="1" id="4276" />
-<TGConnectingPoint num="2" id="4277" />
-<TGConnectingPoint num="3" id="4278" />
+<TGConnectingPoint num="0" id="4294" />
+<TGConnectingPoint num="1" id="4295" />
+<TGConnectingPoint num="2" id="4296" />
+<TGConnectingPoint num="3" id="4297" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -9016,262 +9053,224 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<COMPONENT type="5106" id="4322" >
-<cdparam x="357" y="290" />
+<COMPONENT type="5106" id="4341" >
+<cdparam x="369" y="313" />
 <sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="Opened" />
-<TGConnectingPoint num="0" id="4282" />
-<TGConnectingPoint num="1" id="4283" />
-<TGConnectingPoint num="2" id="4284" />
-<TGConnectingPoint num="3" id="4285" />
-<TGConnectingPoint num="4" id="4286" />
-<TGConnectingPoint num="5" id="4287" />
-<TGConnectingPoint num="6" id="4288" />
-<TGConnectingPoint num="7" id="4289" />
-<TGConnectingPoint num="8" id="4290" />
-<TGConnectingPoint num="9" id="4291" />
-<TGConnectingPoint num="10" id="4292" />
-<TGConnectingPoint num="11" id="4293" />
-<TGConnectingPoint num="12" id="4294" />
-<TGConnectingPoint num="13" id="4295" />
-<TGConnectingPoint num="14" id="4296" />
-<TGConnectingPoint num="15" id="4297" />
-<TGConnectingPoint num="16" id="4298" />
-<TGConnectingPoint num="17" id="4299" />
-<TGConnectingPoint num="18" id="4300" />
-<TGConnectingPoint num="19" id="4301" />
-<TGConnectingPoint num="20" id="4302" />
-<TGConnectingPoint num="21" id="4303" />
-<TGConnectingPoint num="22" id="4304" />
-<TGConnectingPoint num="23" id="4305" />
-<TGConnectingPoint num="24" id="4306" />
-<TGConnectingPoint num="25" id="4307" />
-<TGConnectingPoint num="26" id="4308" />
-<TGConnectingPoint num="27" id="4309" />
-<TGConnectingPoint num="28" id="4310" />
-<TGConnectingPoint num="29" id="4311" />
-<TGConnectingPoint num="30" id="4312" />
-<TGConnectingPoint num="31" id="4313" />
-<TGConnectingPoint num="32" id="4314" />
-<TGConnectingPoint num="33" id="4315" />
-<TGConnectingPoint num="34" id="4316" />
-<TGConnectingPoint num="35" id="4317" />
-<TGConnectingPoint num="36" id="4318" />
-<TGConnectingPoint num="37" id="4319" />
-<TGConnectingPoint num="38" id="4320" />
-<TGConnectingPoint num="39" id="4321" />
+<infoparam name="state0" value="Ringing" />
+<TGConnectingPoint num="0" id="4301" />
+<TGConnectingPoint num="1" id="4302" />
+<TGConnectingPoint num="2" id="4303" />
+<TGConnectingPoint num="3" id="4304" />
+<TGConnectingPoint num="4" id="4305" />
+<TGConnectingPoint num="5" id="4306" />
+<TGConnectingPoint num="6" id="4307" />
+<TGConnectingPoint num="7" id="4308" />
+<TGConnectingPoint num="8" id="4309" />
+<TGConnectingPoint num="9" id="4310" />
+<TGConnectingPoint num="10" id="4311" />
+<TGConnectingPoint num="11" id="4312" />
+<TGConnectingPoint num="12" id="4313" />
+<TGConnectingPoint num="13" id="4314" />
+<TGConnectingPoint num="14" id="4315" />
+<TGConnectingPoint num="15" id="4316" />
+<TGConnectingPoint num="16" id="4317" />
+<TGConnectingPoint num="17" id="4318" />
+<TGConnectingPoint num="18" id="4319" />
+<TGConnectingPoint num="19" id="4320" />
+<TGConnectingPoint num="20" id="4321" />
+<TGConnectingPoint num="21" id="4322" />
+<TGConnectingPoint num="22" id="4323" />
+<TGConnectingPoint num="23" id="4324" />
+<TGConnectingPoint num="24" id="4325" />
+<TGConnectingPoint num="25" id="4326" />
+<TGConnectingPoint num="26" id="4327" />
+<TGConnectingPoint num="27" id="4328" />
+<TGConnectingPoint num="28" id="4329" />
+<TGConnectingPoint num="29" id="4330" />
+<TGConnectingPoint num="30" id="4331" />
+<TGConnectingPoint num="31" id="4332" />
+<TGConnectingPoint num="32" id="4333" />
+<TGConnectingPoint num="33" id="4334" />
+<TGConnectingPoint num="34" id="4335" />
+<TGConnectingPoint num="35" id="4336" />
+<TGConnectingPoint num="36" id="4337" />
+<TGConnectingPoint num="37" id="4338" />
+<TGConnectingPoint num="38" id="4339" />
+<TGConnectingPoint num="39" id="4340" />
 <extraparam>
-<entryCode value="printf(&quot;Door is opened!!!\n&quot;);" />
+<entryCode value="" />
+<entryCode value="printf(&quot;\nDRING DRING DRING !!!!\n\n&quot;);" />
 </extraparam>
 </COMPONENT>
 
-<COMPONENT type="5103" id="4333" >
-<cdparam x="380" y="379" />
-<sizeparam width="55" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Send signal" value="closed()" />
-<TGConnectingPoint num="0" id="4323" />
-<TGConnectingPoint num="1" id="4324" />
-<TGConnectingPoint num="2" id="4325" />
-<TGConnectingPoint num="3" id="4326" />
-<TGConnectingPoint num="4" id="4327" />
-<TGConnectingPoint num="5" id="4328" />
-<TGConnectingPoint num="6" id="4329" />
-<TGConnectingPoint num="7" id="4330" />
-<TGConnectingPoint num="8" id="4331" />
-<TGConnectingPoint num="9" id="4332" />
-</COMPONENT>
-
-<COMPONENT type="5103" id="4344" >
-<cdparam x="384" y="184" />
-<sizeparam width="47" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<COMPONENT type="5104" id="4352" >
+<cdparam x="395" y="184" />
+<sizeparam width="48" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Send signal" value="open()" />
-<TGConnectingPoint num="0" id="4334" />
-<TGConnectingPoint num="1" id="4335" />
-<TGConnectingPoint num="2" id="4336" />
-<TGConnectingPoint num="3" id="4337" />
-<TGConnectingPoint num="4" id="4338" />
-<TGConnectingPoint num="5" id="4339" />
-<TGConnectingPoint num="6" id="4340" />
-<TGConnectingPoint num="7" id="4341" />
-<TGConnectingPoint num="8" id="4342" />
-<TGConnectingPoint num="9" id="4343" />
-</COMPONENT>
-
-<COMPONENT type="5106" id="4385" >
-<cdparam x="357" y="100" />
+<infoparam name="Send signal" value="ring()" />
+<TGConnectingPoint num="0" id="4342" />
+<TGConnectingPoint num="1" id="4343" />
+<TGConnectingPoint num="2" id="4344" />
+<TGConnectingPoint num="3" id="4345" />
+<TGConnectingPoint num="4" id="4346" />
+<TGConnectingPoint num="5" id="4347" />
+<TGConnectingPoint num="6" id="4348" />
+<TGConnectingPoint num="7" id="4349" />
+<TGConnectingPoint num="8" id="4350" />
+<TGConnectingPoint num="9" id="4351" />
+</COMPONENT>
+
+<COMPONENT type="5106" id="4393" >
+<cdparam x="369" y="98" />
 <sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="IDLE" />
-<TGConnectingPoint num="0" id="4345" />
-<TGConnectingPoint num="1" id="4346" />
-<TGConnectingPoint num="2" id="4347" />
-<TGConnectingPoint num="3" id="4348" />
-<TGConnectingPoint num="4" id="4349" />
-<TGConnectingPoint num="5" id="4350" />
-<TGConnectingPoint num="6" id="4351" />
-<TGConnectingPoint num="7" id="4352" />
-<TGConnectingPoint num="8" id="4353" />
-<TGConnectingPoint num="9" id="4354" />
-<TGConnectingPoint num="10" id="4355" />
-<TGConnectingPoint num="11" id="4356" />
-<TGConnectingPoint num="12" id="4357" />
-<TGConnectingPoint num="13" id="4358" />
-<TGConnectingPoint num="14" id="4359" />
-<TGConnectingPoint num="15" id="4360" />
-<TGConnectingPoint num="16" id="4361" />
-<TGConnectingPoint num="17" id="4362" />
-<TGConnectingPoint num="18" id="4363" />
-<TGConnectingPoint num="19" id="4364" />
-<TGConnectingPoint num="20" id="4365" />
-<TGConnectingPoint num="21" id="4366" />
-<TGConnectingPoint num="22" id="4367" />
-<TGConnectingPoint num="23" id="4368" />
-<TGConnectingPoint num="24" id="4369" />
-<TGConnectingPoint num="25" id="4370" />
-<TGConnectingPoint num="26" id="4371" />
-<TGConnectingPoint num="27" id="4372" />
-<TGConnectingPoint num="28" id="4373" />
-<TGConnectingPoint num="29" id="4374" />
-<TGConnectingPoint num="30" id="4375" />
-<TGConnectingPoint num="31" id="4376" />
-<TGConnectingPoint num="32" id="4377" />
-<TGConnectingPoint num="33" id="4378" />
-<TGConnectingPoint num="34" id="4379" />
-<TGConnectingPoint num="35" id="4380" />
-<TGConnectingPoint num="36" id="4381" />
-<TGConnectingPoint num="37" id="4382" />
-<TGConnectingPoint num="38" id="4383" />
-<TGConnectingPoint num="39" id="4384" />
-<extraparam>
-<entryCode value="printf(&quot;Door is closed\n&quot;);" />
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="5100" id="4387" >
+<infoparam name="state0" value="Active" />
+<TGConnectingPoint num="0" id="4353" />
+<TGConnectingPoint num="1" id="4354" />
+<TGConnectingPoint num="2" id="4355" />
+<TGConnectingPoint num="3" id="4356" />
+<TGConnectingPoint num="4" id="4357" />
+<TGConnectingPoint num="5" id="4358" />
+<TGConnectingPoint num="6" id="4359" />
+<TGConnectingPoint num="7" id="4360" />
+<TGConnectingPoint num="8" id="4361" />
+<TGConnectingPoint num="9" id="4362" />
+<TGConnectingPoint num="10" id="4363" />
+<TGConnectingPoint num="11" id="4364" />
+<TGConnectingPoint num="12" id="4365" />
+<TGConnectingPoint num="13" id="4366" />
+<TGConnectingPoint num="14" id="4367" />
+<TGConnectingPoint num="15" id="4368" />
+<TGConnectingPoint num="16" id="4369" />
+<TGConnectingPoint num="17" id="4370" />
+<TGConnectingPoint num="18" id="4371" />
+<TGConnectingPoint num="19" id="4372" />
+<TGConnectingPoint num="20" id="4373" />
+<TGConnectingPoint num="21" id="4374" />
+<TGConnectingPoint num="22" id="4375" />
+<TGConnectingPoint num="23" id="4376" />
+<TGConnectingPoint num="24" id="4377" />
+<TGConnectingPoint num="25" id="4378" />
+<TGConnectingPoint num="26" id="4379" />
+<TGConnectingPoint num="27" id="4380" />
+<TGConnectingPoint num="28" id="4381" />
+<TGConnectingPoint num="29" id="4382" />
+<TGConnectingPoint num="30" id="4383" />
+<TGConnectingPoint num="31" id="4384" />
+<TGConnectingPoint num="32" id="4385" />
+<TGConnectingPoint num="33" id="4386" />
+<TGConnectingPoint num="34" id="4387" />
+<TGConnectingPoint num="35" id="4388" />
+<TGConnectingPoint num="36" id="4389" />
+<TGConnectingPoint num="37" id="4390" />
+<TGConnectingPoint num="38" id="4391" />
+<TGConnectingPoint num="39" id="4392" />
+<extraparam>
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="5100" id="4395" >
 <cdparam x="400" y="50" />
 <sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="start state" value="null" />
-<TGConnectingPoint num="0" id="4386" />
+<TGConnectingPoint num="0" id="4394" />
 </COMPONENT>
 
 
 </AVATARStateMachineDiagramPanel>
 
-<AVATARStateMachineDiagramPanel name="WirelessInterface" minX="10" maxX="1400" minY="10" maxY="900" >
-<CONNECTOR type="5102" id="4394" >
-<cdparam x="447" y="399" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector" value="null" />
-<TGConnectingPoint num="0" id="4393" />
-<P1  x="447" y="399" id="4429" />
-<P2  x="474" y="432" id="4464" />
-<AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4392" >
-<father id="4394" num="0" />
-<cdparam x="447" y="439" />
-<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4388" />
-<TGConnectingPoint num="1" id="4389" />
-<TGConnectingPoint num="2" id="4390" />
-<TGConnectingPoint num="3" id="4391" />
-<extraparam>
-<guard value="[ ]" />
-<afterMin value="" />
-<afterMax value="" />
-<computeMin value="" />
-<computeMax value="" />
-</extraparam>
-</SUBCOMPONENT>
-
-<CONNECTOR type="5102" id="4401" >
-<cdparam x="491" y="459" />
+<AVATARStateMachineDiagramPanel name="RemoteControl" minX="10" maxX="1400" minY="10" maxY="900" >
+<CONNECTOR type="118" id="4396" >
+<cdparam x="516" y="268" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from Send signal to stop state" value="null" />
-<TGConnectingPoint num="0" id="4400" />
-<P1  x="474" y="462" id="4465" />
-<P2  x="485" y="495" id="4516" />
+<infoparam name="connector from List of all parameters of an Avatar SMD transition to UML Note" value="null" />
+<P1  x="508" y="133" id="4399" />
+<P2  x="661" y="95" id="4469" />
+<AutomaticDrawing  data="false" />
+</CONNECTOR>
+<CONNECTOR type="5102" id="4403" >
+<cdparam x="290" y="140" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector from start state to state0" value="null" />
+<TGConnectingPoint num="0" id="4402" />
+<P1  x="309" y="119" id="4529" />
+<P2  x="325" y="163" id="4476" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4399" >
-<father id="4401" num="0" />
-<cdparam x="491" y="499" />
-<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4401" >
+<father id="4403" num="0" />
+<cdparam x="340" y="118" />
+<sizeparam width="168" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4395" />
-<TGConnectingPoint num="1" id="4396" />
-<TGConnectingPoint num="2" id="4397" />
-<TGConnectingPoint num="3" id="4398" />
+<TGConnectingPoint num="0" id="4397" />
+<TGConnectingPoint num="1" id="4398" />
+<TGConnectingPoint num="2" id="4399" />
+<TGConnectingPoint num="3" id="4400" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
+<actions value="msg1.data = duration" />
+<actions value="msg = sencrypt(msg1, PSK)" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="4408" >
-<cdparam x="455" y="352" />
+<CONNECTOR type="5102" id="4410" >
+<cdparam x="327" y="221" />
 <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from state0 to stop state" value="null" />
-<TGConnectingPoint num="0" id="4407" />
-<P1  x="414" y="275" id="4481" />
-<P2  x="447" y="349" id="4424" />
+<infoparam name="connector from start state to Send signal" value="null" />
+<TGConnectingPoint num="0" id="4409" />
+<P1  x="325" y="213" id="4481" />
+<P2  x="347" y="291" id="4518" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4406" >
-<father id="4408" num="0" />
-<cdparam x="459" y="317" />
-<sizeparam width="177" height="30" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4408" >
+<father id="4410" num="0" />
+<cdparam x="364" y="248" />
+<sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4402" />
-<TGConnectingPoint num="1" id="4403" />
-<TGConnectingPoint num="2" id="4404" />
-<TGConnectingPoint num="3" id="4405" />
+<TGConnectingPoint num="0" id="4404" />
+<TGConnectingPoint num="1" id="4405" />
+<TGConnectingPoint num="2" id="4406" />
+<TGConnectingPoint num="3" id="4407" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
 <afterMax value="" />
 <computeMin value="" />
 <computeMax value="" />
-<actions value="msg3 = sdecrypt(msg2, PSK)" />
-<actions value="selectedDuration = msg3.data" />
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="4415" >
-<cdparam x="386" y="101" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from start state to Receive signal" value="null" />
-<TGConnectingPoint num="0" id="4414" />
-<P1  x="386" y="101" id="4529" />
-<P2  x="401" y="161" id="4518" />
+<CONNECTOR type="5102" id="4417" >
+<cdparam x="347" y="321" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector" value="null" />
+<TGConnectingPoint num="0" id="4416" />
+<P1  x="347" y="321" id="4519" />
+<P2  x="348" y="377" id="4433" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4413" >
-<father id="4415" num="0" />
-<cdparam x="386" y="141" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4415" >
+<father id="4417" num="0" />
+<cdparam x="347" y="361" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4409" />
-<TGConnectingPoint num="1" id="4410" />
-<TGConnectingPoint num="2" id="4411" />
-<TGConnectingPoint num="3" id="4412" />
+<TGConnectingPoint num="0" id="4411" />
+<TGConnectingPoint num="1" id="4412" />
+<TGConnectingPoint num="2" id="4413" />
+<TGConnectingPoint num="3" id="4414" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -9281,25 +9280,25 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<CONNECTOR type="5102" id="4422" >
-<cdparam x="401" y="191" />
-<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="1000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<infoparam name="connector from Receive signal to stop state" value="null" />
-<TGConnectingPoint num="0" id="4421" />
-<P1  x="401" y="191" id="4519" />
-<P2  x="414" y="225" id="4476" />
+<CONNECTOR type="5102" id="4424" >
+<cdparam x="373" y="427" />
+<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="connector" value="null" />
+<TGConnectingPoint num="0" id="4423" />
+<P1  x="373" y="427" id="4431" />
+<P2  x="375" y="442" id="4516" />
 <AutomaticDrawing  data="true" />
-</CONNECTOR><SUBCOMPONENT type="-1" id="4420" >
-<father id="4422" num="0" />
-<cdparam x="453" y="214" />
+</CONNECTOR><SUBCOMPONENT type="-1" id="4422" >
+<father id="4424" num="0" />
+<cdparam x="373" y="467" />
 <sizeparam width="10" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
 <infoparam name="List of all parameters of an Avatar SMD transition" value="" />
-<TGConnectingPoint num="0" id="4416" />
-<TGConnectingPoint num="1" id="4417" />
-<TGConnectingPoint num="2" id="4418" />
-<TGConnectingPoint num="3" id="4419" />
+<TGConnectingPoint num="0" id="4418" />
+<TGConnectingPoint num="1" id="4419" />
+<TGConnectingPoint num="2" id="4420" />
+<TGConnectingPoint num="3" id="4421" />
 <extraparam>
 <guard value="[ ]" />
 <afterMin value="" />
@@ -9309,80 +9308,82 @@ or by a maintenance station
 </extraparam>
 </SUBCOMPONENT>
 
-<COMPONENT type="5106" id="4463" >
-<cdparam x="306" y="349" />
-<sizeparam width="282" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<COMPONENT type="5106" id="4465" >
+<cdparam x="323" y="377" />
+<sizeparam width="100" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="gotDecryptedOrder" />
-<TGConnectingPoint num="0" id="4423" />
-<TGConnectingPoint num="1" id="4424" />
-<TGConnectingPoint num="2" id="4425" />
-<TGConnectingPoint num="3" id="4426" />
-<TGConnectingPoint num="4" id="4427" />
-<TGConnectingPoint num="5" id="4428" />
-<TGConnectingPoint num="6" id="4429" />
-<TGConnectingPoint num="7" id="4430" />
-<TGConnectingPoint num="8" id="4431" />
-<TGConnectingPoint num="9" id="4432" />
-<TGConnectingPoint num="10" id="4433" />
-<TGConnectingPoint num="11" id="4434" />
-<TGConnectingPoint num="12" id="4435" />
-<TGConnectingPoint num="13" id="4436" />
-<TGConnectingPoint num="14" id="4437" />
-<TGConnectingPoint num="15" id="4438" />
-<TGConnectingPoint num="16" id="4439" />
-<TGConnectingPoint num="17" id="4440" />
-<TGConnectingPoint num="18" id="4441" />
-<TGConnectingPoint num="19" id="4442" />
-<TGConnectingPoint num="20" id="4443" />
-<TGConnectingPoint num="21" id="4444" />
-<TGConnectingPoint num="22" id="4445" />
-<TGConnectingPoint num="23" id="4446" />
-<TGConnectingPoint num="24" id="4447" />
-<TGConnectingPoint num="25" id="4448" />
-<TGConnectingPoint num="26" id="4449" />
-<TGConnectingPoint num="27" id="4450" />
-<TGConnectingPoint num="28" id="4451" />
-<TGConnectingPoint num="29" id="4452" />
-<TGConnectingPoint num="30" id="4453" />
-<TGConnectingPoint num="31" id="4454" />
-<TGConnectingPoint num="32" id="4455" />
-<TGConnectingPoint num="33" id="4456" />
-<TGConnectingPoint num="34" id="4457" />
-<TGConnectingPoint num="35" id="4458" />
-<TGConnectingPoint num="36" id="4459" />
-<TGConnectingPoint num="37" id="4460" />
-<TGConnectingPoint num="38" id="4461" />
-<TGConnectingPoint num="39" id="4462" />
-<extraparam>
-</extraparam>
-</COMPONENT>
-
-<COMPONENT type="5103" id="4474" >
-<cdparam x="383" y="437" />
-<sizeparam width="182" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<infoparam name="state0" value="Msg1Sent" />
+<TGConnectingPoint num="0" id="4425" />
+<TGConnectingPoint num="1" id="4426" />
+<TGConnectingPoint num="2" id="4427" />
+<TGConnectingPoint num="3" id="4428" />
+<TGConnectingPoint num="4" id="4429" />
+<TGConnectingPoint num="5" id="4430" />
+<TGConnectingPoint num="6" id="4431" />
+<TGConnectingPoint num="7" id="4432" />
+<TGConnectingPoint num="8" id="4433" />
+<TGConnectingPoint num="9" id="4434" />
+<TGConnectingPoint num="10" id="4435" />
+<TGConnectingPoint num="11" id="4436" />
+<TGConnectingPoint num="12" id="4437" />
+<TGConnectingPoint num="13" id="4438" />
+<TGConnectingPoint num="14" id="4439" />
+<TGConnectingPoint num="15" id="4440" />
+<TGConnectingPoint num="16" id="4441" />
+<TGConnectingPoint num="17" id="4442" />
+<TGConnectingPoint num="18" id="4443" />
+<TGConnectingPoint num="19" id="4444" />
+<TGConnectingPoint num="20" id="4445" />
+<TGConnectingPoint num="21" id="4446" />
+<TGConnectingPoint num="22" id="4447" />
+<TGConnectingPoint num="23" id="4448" />
+<TGConnectingPoint num="24" id="4449" />
+<TGConnectingPoint num="25" id="4450" />
+<TGConnectingPoint num="26" id="4451" />
+<TGConnectingPoint num="27" id="4452" />
+<TGConnectingPoint num="28" id="4453" />
+<TGConnectingPoint num="29" id="4454" />
+<TGConnectingPoint num="30" id="4455" />
+<TGConnectingPoint num="31" id="4456" />
+<TGConnectingPoint num="32" id="4457" />
+<TGConnectingPoint num="33" id="4458" />
+<TGConnectingPoint num="34" id="4459" />
+<TGConnectingPoint num="35" id="4460" />
+<TGConnectingPoint num="36" id="4461" />
+<TGConnectingPoint num="37" id="4462" />
+<TGConnectingPoint num="38" id="4463" />
+<TGConnectingPoint num="39" id="4464" />
+<extraparam>
+</extraparam>
+</COMPONENT>
+
+<COMPONENT type="301" id="4474" >
+<cdparam x="661" y="78" />
+<sizeparam width="251" height="35" minWidth="50" minHeight="20" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Send signal" value="remoteStart(selectedDuration)" />
-<TGConnectingPoint num="0" id="4464" />
-<TGConnectingPoint num="1" id="4465" />
-<TGConnectingPoint num="2" id="4466" />
-<TGConnectingPoint num="3" id="4467" />
-<TGConnectingPoint num="4" id="4468" />
-<TGConnectingPoint num="5" id="4469" />
-<TGConnectingPoint num="6" id="4470" />
-<TGConnectingPoint num="7" id="4471" />
-<TGConnectingPoint num="8" id="4472" />
-<TGConnectingPoint num="9" id="4473" />
+<infoparam name="UML Note" value="Encrypting data with the pre shared key
+" />
+<TGConnectingPoint num="0" id="4466" />
+<TGConnectingPoint num="1" id="4467" />
+<TGConnectingPoint num="2" id="4468" />
+<TGConnectingPoint num="3" id="4469" />
+<TGConnectingPoint num="4" id="4470" />
+<TGConnectingPoint num="5" id="4471" />
+<TGConnectingPoint num="6" id="4472" />
+<TGConnectingPoint num="7" id="4473" />
+<extraparam>
+<Line value="Encrypting data with the pre shared key" />
+</extraparam>
 </COMPONENT>
 
 <COMPONENT type="5106" id="4515" >
-<cdparam x="348" y="225" />
-<sizeparam width="133" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<cdparam x="239" y="163" />
+<sizeparam width="172" height="50" minWidth="40" minHeight="30" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="state0" value="gotWirelessOrder" />
+<infoparam name="state0" value="SendingRemoteOrder" />
 <TGConnectingPoint num="0" id="4475" />
 <TGConnectingPoint num="1" id="4476" />
 <TGConnectingPoint num="2" id="4477" />
@@ -9424,12 +9425,11 @@ or by a maintenance station
 <TGConnectingPoint num="38" id="4513" />
 <TGConnectingPoint num="39" id="4514" />
 <extraparam>
-<entryCode value="printf(&quot;Got duration from remote control :%d\n&quot;, msg2__data);" />
 </extraparam>
 </COMPONENT>
 
 <COMPONENT type="5101" id="4517" >
-<cdparam x="475" y="500" />
+<cdparam x="365" y="447" />
 <sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
@@ -9437,12 +9437,12 @@ or by a maintenance station
 <TGConnectingPoint num="0" id="4516" />
 </COMPONENT>
 
-<COMPONENT type="5104" id="4528" >
-<cdparam x="311" y="166" />
-<sizeparam width="180" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
+<COMPONENT type="5103" id="4528" >
+<cdparam x="266" y="296" />
+<sizeparam width="163" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Receive signal" value="wirelessChannelRead(msg2)" />
+<infoparam name="Send signal" value="wirelessChannelWrite(msg)" />
 <TGConnectingPoint num="0" id="4518" />
 <TGConnectingPoint num="1" id="4519" />
 <TGConnectingPoint num="2" id="4520" />
@@ -9456,7 +9456,7 @@ or by a maintenance station
 </COMPONENT>
 
 <COMPONENT type="5100" id="4530" >
-<cdparam x="379" y="81" />
+<cdparam x="302" y="99" />
 <sizeparam width="15" height="15" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
 <hidden value="false" />
 <cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
@@ -9472,50 +9472,4 @@ or by a maintenance station
 
 
 
-<Modeling type="ADD" nameTab="Avatar Deployment" >
-<ADDDiagramPanel name="Avatar Deployment Diagram" minX="10" maxX="1400" minY="10" maxY="900" attributes="0" masterClockFrequency="200" >
-<COMPONENT type="5353" id="4532" >
-<cdparam x="360" y="262" />
-<sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />
-<hidden value="false" />
-<cdrectangleparam minX="10" maxX="1400" minY="10" maxY="900" />
-<infoparam name="Vgmn0" value="name" />
-<TGConnectingPoint num="0" id="4533" />
-<TGConnectingPoint num="1" id="4534" />
-<TGConnectingPoint num="2" id="4535" />
-<TGConnectingPoint num="3" id="4536" />
-<TGConnectingPoint num="4" id="4537" />
-<TGConnectingPoint num="5" id="4538" />
-<TGConnectingPoint num="6" id="4539" />
-<TGConnectingPoint num="7" id="4540" />
-<TGConnectingPoint num="8" id="4541" />
-<TGConnectingPoint num="9" id="4542" />
-<TGConnectingPoint num="10" id="4543" />
-<TGConnectingPoint num="11" id="4544" />
-<TGConnectingPoint num="12" id="4545" />
-<TGConnectingPoint num="13" id="4546" />
-<TGConnectingPoint num="14" id="4547" />
-<TGConnectingPoint num="15" id="4548" />
-<TGConnectingPoint num="16" id="4549" />
-<TGConnectingPoint num="17" id="4550" />
-<TGConnectingPoint num="18" id="4551" />
-<TGConnectingPoint num="19" id="4552" />
-<TGConnectingPoint num="20" id="4553" />
-<TGConnectingPoint num="21" id="4554" />
-<TGConnectingPoint num="22" id="4555" />
-<TGConnectingPoint num="23" id="4556" />
-<extraparam>
-<info stereotype="VGMN" nodeName="Vgmn0" />
-<attributes index="0"  nbAttachedInitiat="0"  nbAttachedTarget="0"  minLatency="0"  fifoDepth="0" />
-</extraparam>
-</COMPONENT>
-
-
-</ADDDiagramPanel>
-
-</Modeling>
-
-
-
-
 </TURTLEGMODELING>
\ No newline at end of file
diff --git a/src/Main.java b/src/Main.java
index 729f57687169e78ba8629bfd95fce2a0db133039..9e7da44f35f17cee289f7c3dbb99939f82cd2aea 100755
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,48 +1,48 @@
 /**Copyright or (C) or Copr. GET / ENST, Telecom-Paris, Ludovic Apvrille
 
-ludovic.apvrille AT enst.fr
-
-This software is a computer program whose purpose is to allow the 
-edition of TURTLE analysis, design and deployment diagrams, to 
-allow the generation of RT-LOTOS or Java code from this diagram, 
-and at last to allow the analysis of formal validation traces 
-obtained from external tools, e.g. RTL from LAAS-CNRS and CADP 
-from INRIA Rhone-Alpes.
-
-This software is governed by the CeCILL  license under French law and
-abiding by the rules of distribution of free software.  You can  use, 
-modify and/ or redistribute the software under the terms of the CeCILL
-license as circulated by CEA, CNRS and INRIA at the following URL
-"http://www.cecill.info". 
-
-As a counterpart to the access to the source code and  rights to copy,
-modify and redistribute granted by the license, users are provided only
-with a limited warranty  and the software's author,  the holder of the
-economic rights,  and the successive licensors  have only  limited
-liability. 
-
-In this respect, the user's attention is drawn to the risks associated
-with loading,  using,  modifying and/or developing or reproducing the
-software by the user in light of its specific status of free software,
-that may mean  that it is complicated to manipulate,  and  that  also
-therefore means  that it is reserved for developers  and  experienced
-professionals having in-depth computer knowledge. Users are therefore
-encouraged to load and test the software's suitability as regards their
-requirements in conditions enabling the security of their systems and/or 
-data to be ensured and,  more generally, to use and operate it in the 
-same conditions as regards security. 
-
-The fact that you are presently reading this means that you have had
-knowledge of the CeCILL license and that you accept its terms.
-
-/**
- * Class Main
- * starts the main Windows and a project manager
- * Creation: 01/12/2003
- * @version 1.0 21/08/2004
- * @author Ludovic APVRILLE
- * @see
- */
+   ludovic.apvrille AT enst.fr
+
+   This software is a computer program whose purpose is to allow the
+   edition of TURTLE analysis, design and deployment diagrams, to
+   allow the generation of RT-LOTOS or Java code from this diagram,
+   and at last to allow the analysis of formal validation traces
+   obtained from external tools, e.g. RTL from LAAS-CNRS and CADP
+   from INRIA Rhone-Alpes.
+
+   This software is governed by the CeCILL  license under French law and
+   abiding by the rules of distribution of free software.  You can  use,
+   modify and/ or redistribute the software under the terms of the CeCILL
+   license as circulated by CEA, CNRS and INRIA at the following URL
+   "http://www.cecill.info".
+
+   As a counterpart to the access to the source code and  rights to copy,
+   modify and redistribute granted by the license, users are provided only
+   with a limited warranty  and the software's author,  the holder of the
+   economic rights,  and the successive licensors  have only  limited
+   liability.
+
+   In this respect, the user's attention is drawn to the risks associated
+   with loading,  using,  modifying and/or developing or reproducing the
+   software by the user in light of its specific status of free software,
+   that may mean  that it is complicated to manipulate,  and  that  also
+   therefore means  that it is reserved for developers  and  experienced
+   professionals having in-depth computer knowledge. Users are therefore
+   encouraged to load and test the software's suitability as regards their
+   requirements in conditions enabling the security of their systems and/or
+   data to be ensured and,  more generally, to use and operate it in the
+   same conditions as regards security.
+
+   The fact that you are presently reading this means that you have had
+   knowledge of the CeCILL license and that you accept its terms.
+
+   /**
+   * Class Main
+   * starts the main Windows and a project manager
+   * Creation: 01/12/2003
+   * @version 1.0 21/08/2004
+   * @author Ludovic APVRILLE
+   * @see
+   */
 
 import java.awt.*;
 import java.awt.event.*;
@@ -66,71 +66,71 @@ public class Main implements ActionListener {
     public static boolean os = false;
     public static boolean uppaal = true;
     public static boolean nc = true ; // Network calculus
-	public static boolean avatar = true ; // avatar profile
-	public static boolean proverif = false;
-	public static boolean experimental = false;
-	public static boolean avataronly = false;
-	
+    public static boolean avatar = true ; // avatar profile
+    public static boolean proverif = false;
+    public static boolean experimental = false;
+    public static boolean avataronly = false;
+
     public static void main(String[] args) {
-    	
-    	//testBoolExpr();
-    	//testMatrix();
-		
-/*    	int x = 5 * 2 + 3;
-    	int y = 3 + 5 * 2;
-    	System.out.println("x=" + x + " y=" + y);*/
-    	
-    	
-		TraceManager.devPolicy = TraceManager.TO_DEVNULL;
-        
+
+        //testBoolExpr();
+        //testMatrix();
+
+        /*      int x = 5 * 2 + 3;
+                int y = 3 + 5 * 2;
+                System.out.println("x=" + x + " y=" + y);*/
+
+
+        TraceManager.devPolicy = TraceManager.TO_DEVNULL;
+
         System.out.println("\n*** TTool version: " + DefaultText.getFullVersion() + " ***\n");
-		
-		/*
-		TraceManager.devPolicy = TraceManager.TO_CONSOLE;
-		
-		IntExpressionEvaluator iee = new  IntExpressionEvaluator();
-		int result = (int)(iee.getResultOf("(11+3)*7"));
-		System.out.println("Result=" + result);
-		if(iee.hasError()) {
-			System.out.println("Error in parsing:" + iee.getError());
-		}
-		
-		TraceManager.addDev("Toto");
-		BoolExpressionEvaluator bee = new  BoolExpressionEvaluator();
-		boolean b = bee.getResultOf("not (8 > 10)");
-		System.out.println("Bool result=" + b);
-		if(bee.hasError()) {
-			System.out.println("Error in parsing:" + bee.getError());
-		}
-		/*b = bee.getResultOf("true == (1 == 3)");
-		System.out.println("Bool result=" + b);
-		if(bee.hasError()) {
-			System.out.println("Error in parsing:" + bee.getError());
-		}
-		b = bee.getResultOf("true == (3 == 3)");
-		System.out.println("Bool result=" + b);
-		if(bee.hasError()) {
-			System.out.println("Error in parsing:" + bee.getError());
-		}
-		b = bee.getResultOf("(1 + 5) == (2 + 4)");
-		System.out.println("Bool result=" + b);
-		if(bee.hasError()) {
-			System.out.println("Error in parsing:" + bee.getError());
-		}
-		b = bee.getResultOf("((1 + 5) == (2 + 4)) == true");
-		System.out.println("Bool result=" + b);
-		if(bee.hasError()) {
-			System.out.println("Error in parsing:" + bee.getError());
-		}
-		
-		
-		System.exit(-1);*/
-		
-		
-		
+
+        /*
+          TraceManager.devPolicy = TraceManager.TO_CONSOLE;
+
+          IntExpressionEvaluator iee = new  IntExpressionEvaluator();
+          int result = (int)(iee.getResultOf("(11+3)*7"));
+          System.out.println("Result=" + result);
+          if(iee.hasError()) {
+          System.out.println("Error in parsing:" + iee.getError());
+          }
+
+          TraceManager.addDev("Toto");
+          BoolExpressionEvaluator bee = new  BoolExpressionEvaluator();
+          boolean b = bee.getResultOf("not (8 > 10)");
+          System.out.println("Bool result=" + b);
+          if(bee.hasError()) {
+          System.out.println("Error in parsing:" + bee.getError());
+          }
+          /*b = bee.getResultOf("true == (1 == 3)");
+          System.out.println("Bool result=" + b);
+          if(bee.hasError()) {
+          System.out.println("Error in parsing:" + bee.getError());
+          }
+          b = bee.getResultOf("true == (3 == 3)");
+          System.out.println("Bool result=" + b);
+          if(bee.hasError()) {
+          System.out.println("Error in parsing:" + bee.getError());
+          }
+          b = bee.getResultOf("(1 + 5) == (2 + 4)");
+          System.out.println("Bool result=" + b);
+          if(bee.hasError()) {
+          System.out.println("Error in parsing:" + bee.getError());
+          }
+          b = bee.getResultOf("((1 + 5) == (2 + 4)) == true");
+          System.out.println("Bool result=" + b);
+          if(bee.hasError()) {
+          System.out.println("Error in parsing:" + bee.getError());
+          }
+
+
+          System.exit(-1);*/
+
+
+
         // Read the image data and display the splash screen
         // -------------------------------------------------
-        
+
         JStartingWindow splashFrame = null;
         //System.out.println("hello");
         URL imageURL = Main.class.getResource("ui/images/starting_logo.gif");
@@ -142,31 +142,31 @@ public class Main implements ActionListener {
             splashFrame = JStartingWindow.splash(img, "Loading TTool's elements");
             //splashFrame.setLicenceMessage("An open-source toolkit from:");
             if (splashFrame != null) {
-            	splashFrame.setMiddleMessage("version " + DefaultText.getVersion());
+                splashFrame.setMiddleMessage("version " + DefaultText.getVersion());
             }
             //System.out.println("helly");
         } else {
             System.err.println("Starting image not found");
             System.exit(0);
         }
-        
-        
+
+
         new Timer(3000, main).start();
-        
-        
-        
+
+
+
         // Starting window
         // setting default language
         if (splashFrame != null) {
-        	splashFrame.setMessage("Setting language");
+            splashFrame.setMessage("Setting language");
         }
         Locale.setDefault(new Locale("en"));
-		
-		boolean startLauncher = true;
-        
+
+        boolean startLauncher = true;
+
         // Analyzing arguments
         String config = "config.xml";
-		startLauncher = true;
+        startLauncher = true;
         for(int i=0; i<args.length; i++) {
             if (args[i].compareTo("-systemc") == 0) {
                 systemc = true;
@@ -176,15 +176,15 @@ public class Main implements ActionListener {
                 lotos = true;
                 System.out.println("LOTOS features activated");
             }
-			if (args[i].compareTo("-nolotos") == 0) {
+            if (args[i].compareTo("-nolotos") == 0) {
                 lotos = false;
                 System.out.println("LOTOS features activated");
             }
-             if (args[i].compareTo("-launcher") == 0) {
-				startLauncher = true;
+            if (args[i].compareTo("-launcher") == 0) {
+                startLauncher = true;
             }
-			if (args[i].compareTo("-nolauncher") == 0) {
-				startLauncher = false;
+            if (args[i].compareTo("-nolauncher") == 0) {
+                startLauncher = false;
             }
             if (args[i].compareTo("-diplodocus") == 0) {
                 systemc = true;
@@ -195,7 +195,7 @@ public class Main implements ActionListener {
                 experimental = true;
                 System.out.println("Experimental features activated");
             }
-			if (args[i].compareTo("-nodiplodocus") == 0) {
+            if (args[i].compareTo("-nodiplodocus") == 0) {
                 systemc = false;
                 System.out.println("Diplodocus features deactivated");
             }
@@ -210,76 +210,76 @@ public class Main implements ActionListener {
             }
 
             if (args[i].compareTo("-nonc") ==0 )  {
-				nc = false;
+                nc = false;
                 System.out.println("Network calculus features unactivated - these are beta features that are meant to be used only for research purpose");
             }
-			
-			if (args[i].compareTo("-avatar") ==0 )  {
-				avatar = true;
+
+            if (args[i].compareTo("-avatar") ==0 )  {
+                avatar = true;
                 System.out.println("AVATAR activated - these are beta features that are meant to be used only for research purpose");
             }
-			
-			if (args[i].compareTo("-noavatar") ==0 )  {
-				avatar = false;
+
+            if (args[i].compareTo("-noavatar") ==0 )  {
+                avatar = false;
                 System.out.println("AVATAR unactivated - these are beta features that are meant to be used only for research purpose");
             }
-            
+
             if (args[i].compareTo("-avataronly") ==0 )  {
-				avataronly = true;
+                avataronly = true;
                 System.out.println("Only the AVATAR is activated");
             }
-			
-			if (args[i].compareTo("-proverif") ==0 )  {
-				proverif = true;
+
+            if (args[i].compareTo("-proverif") ==0 )  {
+                proverif = true;
                 System.out.println("ProVerif activated - these are beta features that are meant to be used only for research purpose");
             }
-			
-			if (args[i].compareTo("-noproverif") ==0 )  {
-				proverif = false;
+
+            if (args[i].compareTo("-noproverif") ==0 )  {
+                proverif = false;
                 System.out.println("ProVerif unactivated - these are beta features that are meant to be used only for research purpose");
             }
-	    
+
             if (args[i].compareTo("-os") == 0) {
                 os = true;
                 System.out.println("TURTLE-OS features activated - these are beta features that are meant to be used only for research purpose");
             }
-            
+
             if (args[i].compareTo("-uppaal") == 0) {
                 uppaal = true;
                 System.out.println("UPPAAL features activated - these are beta features that are meant to be used only for research purpose");
             }
-			 if (args[i].compareTo("-nouppaal") == 0) {
+            if (args[i].compareTo("-nouppaal") == 0) {
                 uppaal = false;
                 System.out.println("UPPAAL features activated - these are beta features that are meant to be used only for research purpose");
             }
-            
+
             if (args[i].compareTo("-config") == 0) {
                 config = args[Math.min(args.length-1, i+1)];
             }
-			
-			if (args[i].compareTo("-debug") == 0) {
+
+            if (args[i].compareTo("-debug") == 0) {
                 TraceManager.devPolicy = TraceManager.TO_CONSOLE;
             }
-			
-			if (args[i].compareTo("-nocolor") == 0) {
+
+            if (args[i].compareTo("-nocolor") == 0) {
                 ColorManager.noColor();
             }
-			
+
         }
-        
+
         // Icons
         if (splashFrame != null) {
-        	splashFrame.setMessage("Loading images");
+            splashFrame.setMessage("Loading images");
         }
         IconManager icma = new IconManager();
         icma.loadImg();
-        
+
         // Loading configuration
         if (splashFrame != null) {
-        	splashFrame.setMessage("Loading configuration file: " + config);
+            splashFrame.setMessage("Loading configuration file: " + config);
         }
-        
-        
+
+
         //ConfigurationTTool.makeDefaultConfiguration();
         try {
             ConfigurationTTool.loadConfiguration(config, systemc);
@@ -289,57 +289,61 @@ public class Main implements ActionListener {
         TraceManager.addDev("\nConfiguration:\n--------------");
         TraceManager.addDev(ConfigurationTTool.getConfiguration(systemc));
         TraceManager.addDev("\nDebugging trace:\n----------------");
-        
-		if (ConfigurationTTool.LauncherPort.length() > 0) {
-			try {
-				int port = Integer.decode(ConfigurationTTool.LauncherPort).intValue();
-				launcher.RshClient.PORT_NUMBER = port;
-				launcher.RshServer.PORT_NUMBER = port;
-				TraceManager.addDev("Port number set to: " + port);
-			} catch (Exception e) {
-				TraceManager.addError("Wrong port number:" + ConfigurationTTool.LauncherPort);
-			}
-		}
-		
-		if (startLauncher) {
-			Thread t = new Thread(new RTLLauncher());
-			t.start();
-		}
-        
+
+        if (ConfigurationTTool.LauncherPort.length() > 0) {
+            try {
+                int port = Integer.decode(ConfigurationTTool.LauncherPort).intValue();
+                launcher.RshClient.PORT_NUMBER = port;
+                launcher.RshServer.PORT_NUMBER = port;
+                TraceManager.addDev("Port number set to: " + port);
+            } catch (Exception e) {
+                TraceManager.addError("Wrong port number:" + ConfigurationTTool.LauncherPort);
+            }
+        }
+
+	String sk = null;
+        if (startLauncher) {
+	    RTLLauncher launcher = new RTLLauncher();
+	    sk = launcher.getKey();
+            Thread t = new Thread(launcher);
+            t.start();
+        }
+
         // making main window
         if (splashFrame != null) {
-        	splashFrame.setMessage("Creating main window");
+            splashFrame.setMessage("Creating main window");
         }
         MainGUI mainGUI = new MainGUI(systemc, lotos, proactive, tpn, os, uppaal, nc, avatar, proverif, avataronly, experimental);
         if (splashFrame != null) {
-        	splashFrame.setMessage("Building graphical components");
+            splashFrame.setMessage("Building graphical components");
         }
+	mainGUI.setKey(sk);
         mainGUI.build();
-        
+
         // loading configuration
-        
+
         // starting application
         if (mainGUI == null) {
             ErrorGUI.exit(ErrorGUI.GUI);
         }
-		
+
         if (splashFrame != null) {
-        	splashFrame.setMessage("Starting TTool ...");
+            splashFrame.setMessage("Starting TTool ...");
         }
         main.waitFinish();
         mainGUI.start();
-        
+
         // Dispose the splash screen
         // -------------------------
         if (splashFrame != null) {
             splashFrame.dispose();
         }
-        
+
         // Checking for update
         TToolUpdater tu = new TToolUpdater(mainGUI.frame);
         tu.start();
     }
-    
+
     public synchronized void waitFinish() {
         while(finish == false) {
             try {
@@ -348,97 +352,96 @@ public class Main implements ActionListener {
             }
         }
     }
-    
+
     public synchronized void okFinish() {
         finish = true;
         notifyAll();
     }
-    
+
     public void actionPerformed(ActionEvent evt) {
         main.okFinish();
     }
-    
-    
+
+
     public static void testMatrix() {
-    	
-    	//int[] numbers = {42, 18, 12,-12};
-    	//System.out.println("GCD=" + MyMath.gcd(numbers));
-    	
-    	
-    	/*String[] names = {"a", "b", "e", "ae4"};
-    	int [] line0 ={-1, 1, 0, 0};
-    	int [] line1 ={0, 0,-1, 1};
-    	int [] line2 ={-4, 4, -1, 1};
-    	int [] line3 ={1, -1, 0, 0};
-    	int [] line4 ={0, 0, 1, -1};
-    	int [] line4_fake ={10, 10, 11, -11};
-    	
-    	
-    	int [] line0b ={-1, 1, 1, -1};
-    	int [] line1b ={1, -1,-1, 1};
-    	int [] line2b ={0, 0, 1, 0};
-    	int [] line3b ={1, 0, 0, -1};
-    	int [] line4b ={-1, 0, 0, 1};
-    	
-    	IntMatrix myMat = new IntMatrix(4, 4);
-    	myMat.setNamesOfLine(names);
-    	
-    	
-    	myMat.setLineValues(0, line0);
-    	myMat.setLineValues(1, line1);
-    	myMat.setLineValues(2, line2);
-    	myMat.setLineValues(3, line3);
-    	
-    	System.out.println("mat=\n" + myMat.toString() + "\n\n");
-    	
-    	myMat.addLine(line4_fake, "duplicate-be");
-    	myMat.addLine(line4, "be");
-    	
-    	System.out.println("mat=\n" + myMat.toString() + "\n\n");
-    	
-    	myMat.removeLine(4);
-    	
-    	
-    	System.out.println("mat=\n" + myMat.toString() + "\n\n");
-    	myMat.Farkas();
-    	System.out.println("mat=\n" + myMat.toString() + "\n\n");
-    	
-    	myMat = new IntMatrix(5, 4);
-    	
-    	
-    	myMat.setLineValues(0, line0b);
-    	myMat.setLineValues(1, line1b);
-    	myMat.setLineValues(2, line2b);
-    	myMat.setLineValues(3, line3b);
-    	myMat.setLineValues(4, line4b);
-    	System.out.println("matb=\n" + myMat.toString() + "\n\n");
-    	myMat.Farkas();
-    	System.out.println("matb=\n" + myMat.toString() + "\n\n");*/
-    	
+
+        //int[] numbers = {42, 18, 12,-12};
+        //System.out.println("GCD=" + MyMath.gcd(numbers));
+
+
+        /*String[] names = {"a", "b", "e", "ae4"};
+          int [] line0 ={-1, 1, 0, 0};
+          int [] line1 ={0, 0,-1, 1};
+          int [] line2 ={-4, 4, -1, 1};
+          int [] line3 ={1, -1, 0, 0};
+          int [] line4 ={0, 0, 1, -1};
+          int [] line4_fake ={10, 10, 11, -11};
+
+
+          int [] line0b ={-1, 1, 1, -1};
+          int [] line1b ={1, -1,-1, 1};
+          int [] line2b ={0, 0, 1, 0};
+          int [] line3b ={1, 0, 0, -1};
+          int [] line4b ={-1, 0, 0, 1};
+
+          IntMatrix myMat = new IntMatrix(4, 4);
+          myMat.setNamesOfLine(names);
+
+
+          myMat.setLineValues(0, line0);
+          myMat.setLineValues(1, line1);
+          myMat.setLineValues(2, line2);
+          myMat.setLineValues(3, line3);
+
+          System.out.println("mat=\n" + myMat.toString() + "\n\n");
+
+          myMat.addLine(line4_fake, "duplicate-be");
+          myMat.addLine(line4, "be");
+
+          System.out.println("mat=\n" + myMat.toString() + "\n\n");
+
+          myMat.removeLine(4);
+
+
+          System.out.println("mat=\n" + myMat.toString() + "\n\n");
+          myMat.Farkas();
+          System.out.println("mat=\n" + myMat.toString() + "\n\n");
+
+          myMat = new IntMatrix(5, 4);
+
+
+          myMat.setLineValues(0, line0b);
+          myMat.setLineValues(1, line1b);
+          myMat.setLineValues(2, line2b);
+          myMat.setLineValues(3, line3b);
+          myMat.setLineValues(4, line4b);
+          System.out.println("matb=\n" + myMat.toString() + "\n\n");
+          myMat.Farkas();
+          System.out.println("matb=\n" + myMat.toString() + "\n\n");*/
+
     }
-    
+
     public static void testBoolExpr() {
-    	
-    	
-    	evalBool("t or f");
-    	
-    	evalBool("(t) or f");
-    	
-    	evalBool("(0==0)");
-    	
-    	
-    	
-    	System.exit(-1);
+
+
+        evalBool("t or f");
+
+        evalBool("(t) or f");
+
+        evalBool("(0==0)");
+
+
+
+        System.exit(-1);
     }
-    
+
     public static void evalBool(String s) {
-    	BoolExpressionEvaluator bee = new BoolExpressionEvaluator();
-    	System.out.println("->Result of " + s + " =" + bee.getResultOf(s));
-    	if (bee.hasError()) {
-    		System.out.println("Error = " + bee.getFullError());
-    	}
-    	System.out.println("\n\n");
+        BoolExpressionEvaluator bee = new BoolExpressionEvaluator();
+        System.out.println("->Result of " + s + " =" + bee.getResultOf(s));
+        if (bee.hasError()) {
+            System.out.println("Error = " + bee.getFullError());
+        }
+        System.out.println("\n\n");
     }
-    
-} // Class Main
 
+} // Class Main
diff --git a/src/RTLLauncher.java b/src/RTLLauncher.java
index 6ad319de14ed820040a63d0497f51f8fcc375f17..c5bc2b6555cba5c060aead759c52ef5a3640144c 100755
--- a/src/RTLLauncher.java
+++ b/src/RTLLauncher.java
@@ -1,80 +1,94 @@
 /**Copyright or (C) or Copr. GET / ENST, Telecom-Paris, Ludovic Apvrille
 
-ludovic.apvrille AT enst.fr
-
-This software is a computer program whose purpose is to allow the 
-edition of TURTLE analysis, design and deployment diagrams, to 
-allow the generation of RT-LOTOS or Java code from this diagram, 
-and at last to allow the analysis of formal validation traces 
-obtained from external tools, e.g. RTL from LAAS-CNRS and CADP 
-from INRIA Rhone-Alpes.
-
-This software is governed by the CeCILL  license under French law and
-abiding by the rules of distribution of free software.  You can  use, 
-modify and/ or redistribute the software under the terms of the CeCILL
-license as circulated by CEA, CNRS and INRIA at the following URL
-"http://www.cecill.info". 
-
-As a counterpart to the access to the source code and  rights to copy,
-modify and redistribute granted by the license, users are provided only
-with a limited warranty  and the software's author,  the holder of the
-economic rights,  and the successive licensors  have only  limited
-liability. 
-
-In this respect, the user's attention is drawn to the risks associated
-with loading,  using,  modifying and/or developing or reproducing the
-software by the user in light of its specific status of free software,
-that may mean  that it is complicated to manipulate,  and  that  also
-therefore means  that it is reserved for developers  and  experienced
-professionals having in-depth computer knowledge. Users are therefore
-encouraged to load and test the software's suitability as regards their
-requirements in conditions enabling the security of their systems and/or 
-data to be ensured and,  more generally, to use and operate it in the 
-same conditions as regards security. 
-
-The fact that you are presently reading this means that you have had
-knowledge of the CeCILL license and that you accept its terms.
-
-/**
- * Class RTLLauncher
- * For remote use of RTL
- * Creation: 16/12/2003
- * @version 1.1 14/06/2004
- * @author Ludovic APVRILLE
- * @see
- */
+   ludovic.apvrille AT enst.fr
+
+   This software is a computer program whose purpose is to allow the
+   edition of TURTLE analysis, design and deployment diagrams, to
+   allow the generation of RT-LOTOS or Java code from this diagram,
+   and at last to allow the analysis of formal validation traces
+   obtained from external tools, e.g. RTL from LAAS-CNRS and CADP
+   from INRIA Rhone-Alpes.
+
+   This software is governed by the CeCILL  license under French law and
+   abiding by the rules of distribution of free software.  You can  use,
+   modify and/ or redistribute the software under the terms of the CeCILL
+   license as circulated by CEA, CNRS and INRIA at the following URL
+   "http://www.cecill.info".
+
+   As a counterpart to the access to the source code and  rights to copy,
+   modify and redistribute granted by the license, users are provided only
+   with a limited warranty  and the software's author,  the holder of the
+   economic rights,  and the successive licensors  have only  limited
+   liability.
+
+   In this respect, the user's attention is drawn to the risks associated
+   with loading,  using,  modifying and/or developing or reproducing the
+   software by the user in light of its specific status of free software,
+   that may mean  that it is complicated to manipulate,  and  that  also
+   therefore means  that it is reserved for developers  and  experienced
+   professionals having in-depth computer knowledge. Users are therefore
+   encouraged to load and test the software's suitability as regards their
+   requirements in conditions enabling the security of their systems and/or
+   data to be ensured and,  more generally, to use and operate it in the
+   same conditions as regards security.
+
+   The fact that you are presently reading this means that you have had
+   knowledge of the CeCILL license and that you accept its terms.
+
+   /**
+   * Class RTLLauncher
+   * For remote use of RTL
+   * Creation: 16/12/2003
+   * @version 1.1 14/06/2004
+   * @author Ludovic APVRILLE
+   * @see
+   */
 
 
 
 import launcher.*;
 
+import myutil.*;
+
 public class RTLLauncher implements Runnable {
-    
+
+    protected String sk;
+
     public static void main(String[] args) {
-		for(int i=0; i<args.length; i++) {
-			if (args[i].compareTo("-port") == 0) {
-				if (i != (args.length -1)) {
-					try {
-						int port = Integer.decode(args[i+1]).intValue();
-						RshServer.PORT_NUMBER = port;
-						System.out.println("Port number set to " + port);
-					} catch (Exception e) {
-						System.out.println("Wrong port number");
-					}
-					System.out.println("SystemC features activated - these are beta features that are meant to be used only for research purpose");
-				} else {
-					System.out.println("Missing port number");
-				}
+        for(int i=0; i<args.length; i++) {
+            if (args[i].compareTo("-port") == 0) {
+                if (i != (args.length -1)) {
+                    try {
+                        int port = Integer.decode(args[i+1]).intValue();
+                        RshServer.PORT_NUMBER = port;
+                        System.out.println("Port number set to " + port);
+                    } catch (Exception e) {
+                        System.out.println("Wrong port number");
+                    }
+                    System.out.println("SystemC features activated - these are beta features that are meant to be used only for research purpose");
+                } else {
+                    System.out.println("Missing port number");
+                }
             }
-		}
+        }
         System.out.println("Server side of the launcher\nVersion: " + RshServer.VERSION);
         (new RshServer()).startServer();
     }
+
+    public String getKey() {
+	sk = "";
+	for(int i=0; i<16; i++) {
+	    int cpt = (int)(Math.random()*60) + 50;
+	    sk += (char)cpt;
+	}
+	TraceManager.addDev("Key=" + sk);
+	return sk;
+    }
     
     public void run() {
         System.out.println("Server side of the launcher\nVersion: " + RshServer.VERSION);
-        (new RshServer()).startServer();
+        (new RshServer(sk)).startServer();
     }
-    
-    
-}
\ No newline at end of file
+
+
+}
diff --git a/src/launcher.txt b/src/launcher.txt
index e24a3fe348fbf67dfad06a2fcc7216108c9e5fff..ac9e08a40ab546e9cee9ab7bdea538267cdac233 100755
--- a/src/launcher.txt
+++ b/src/launcher.txt
@@ -1 +1,2 @@
 Main-Class: RTLLauncher
+Class-Path: ./commons-codec-1.10.jar
diff --git a/src/launcher/RshClient.java b/src/launcher/RshClient.java
index d6a996c2c0e32ea8fe820d1b1ef277d37d82928c..3e2efe33fa002a5165491be39014668d6b437c80 100755
--- a/src/launcher/RshClient.java
+++ b/src/launcher/RshClient.java
@@ -39,7 +39,7 @@
  * Class RshClient
  * For remote execution of processes
  * Creation: 2001
- * @version 1.1 01/12/2003
+ * @version 2 22/05/2015
  * @author Ludovic APVRILLE
  * @see
  */
@@ -54,8 +54,9 @@ import myutil.*;
 
 
 public class RshClient {
-    
-    
+
+    public static String sk; //Secret key for communicating with the launcher
+
     private static String NO_HOST = "Application has no execution host";
     private static String INET = "Bad internet address for host ";
     private static String SERV_NOT_RESP = "Server not responding on ";
@@ -63,10 +64,10 @@ public class RshClient {
     private static String PROC_FAILED = "Process could not be launched";
     private static String FILE_FAILED = "File creation failed";
     private static String ID_FAILED = "Wrong id";
-    
+
     private static int BUFSIZE = 511;
-	public static int PORT_NUMBER = 8375;
-    
+    public static int PORT_NUMBER = 8375;
+
     private String host;
     private String cmd;
     private int port = PORT_NUMBER;
@@ -77,90 +78,90 @@ public class RshClient {
     //private DataInputStream in2;
     private PrintStream out;
     //private int offset = 0;
-    
+
     private boolean go;
-    
+
     public RshClient(String _cmd, String _host) {
-		//System.out.println("Using port: " + port);
+        //System.out.println("Using port: " + port);
         cmd = _cmd;
         host = _host;
     }
-    
+
     public RshClient(String _host) {
-		//System.out.println("Using port: " + port);
+        //System.out.println("Using port: " + port);
         host = _host;
     }
-    
-	public void setPort(int _port) {
-		port = _port;
-	}
-	
+
+    public void setPort(int _port) {
+        port = _port;
+    }
+
     public void setCmd(String _cmd) {
         cmd = _cmd;
     }
-    
+
     public void stopFillJTA() throws LauncherException {
         sendKillProcessRequest();
         go = false;
         closeConnect();
     }
-    
+
     public int getId() throws LauncherException {
-      connect(port);
-      send("00");
-      int id = readId();
-      closeConnect();
-      return id;
+        connect(port);
+        send("00");
+        int id = readId();
+        closeConnect();
+        return id;
     }
-    
+
     public int freeId(int id) throws LauncherException {
-      connect(port);
-      send("0" + id);
-      int idret = readId();
-      if (idret != id) {
-        throw new LauncherException(ID_FAILED);
-      }
-      return idret;
+        connect(port);
+        send("0" + id);
+        int idret = readId();
+        if (idret != id) {
+            throw new LauncherException(ID_FAILED);
+        }
+        return idret;
 
     }
-    
+
     public void sendProcessRequest() throws LauncherException {
         connect(port);
         send("1" + cmd);
         readPortString();
         closeConnect();
     }
-    
+
     public void sendProcessRequest(String cmd1, String cmd2) throws LauncherException {
         connect(port);
         send("3" + cmd1);
         int id1 = readPortString();
         closeConnect();
-        
+
         connect(port);
         send("3" + cmd2);
         int id2 = readPortString();
         closeConnect();
-        
+
         connect(port);
         send("2" + id1 + " " + id2);
         readReturnPipedProcesses();
         closeConnect();
-        
+
         connect(port);
         send("4" + id1);
         readReturnPipedProcesses();
         closeConnect();
-        
+
         connect(port);
         send("4" + id2);
         readReturnPipedProcesses();
         closeConnect();
-        
+
         portString = id2;
         portString2 = id1;
     }
-    
+
     public void sendFileData(String fileName, String data) throws LauncherException {
         connect(port);
         send("7" + fileName);
@@ -169,7 +170,7 @@ public class RshClient {
         readReturn();
         closeConnect();
     }
-    
+
     public String getFileData(String fileName) throws LauncherException {
         connect(port);
         send("8" + fileName);
@@ -177,14 +178,14 @@ public class RshClient {
         closeConnect();
         return s;
     }
-    
+
     public void deleteFile(String fileName) throws LauncherException {
         connect(port);
         send("9" + fileName);
         readReturn();
         closeConnect();
     }
-    
+
     public void sendKillProcessRequest() throws LauncherException {
         connect(port);
         send("6" + portString);
@@ -195,73 +196,73 @@ public class RshClient {
             closeConnect();
         }
     }
-    
+
     public void sendKillAllProcessRequest() throws LauncherException {
         connect(port);
         send("5");
         closeConnect();
     }
-    
+
     public String getDataFromProcess() throws LauncherException {
         go = true;
         StringBuffer bf = new StringBuffer();
-        
+
         //System.out.println("Connect");
         connect(portString);
-        
+
         String s;
-        
+
         //System.out.println("Waiting for data");
         while (((s = readProcessData()) != null) && (go == true)) {
             bf.append(s + "\n");
         }
-        
+
         //System.out.println("no more data : stopped");
         closeConnect();
         //System.out.println("Closed");
-        
+
         return new String(bf);
     }
-    
+
     public void fillJTA(JTextArea jta) throws LauncherException {
         go = true;
-        
+
         //System.out.println("Connect");
         connect(portString);
-        
+
         String s;
-        
+
         //TraceManager.addDev("Waiting for process data");
         while (((s = readProcessData()) != null) && (go == true)) {
-        	//TraceManager.addDev("Adding to jta:" + s);
+            //TraceManager.addDev("Adding to jta:" + s);
             jta.append(s + "\n");
         }
-        
+
         //System.out.println("no more data : stopped");
         closeConnect();
         //System.out.println("Closed");
-        
+
     }
-    
+
     public void fillJTAByLine(JTextArea jta) throws LauncherException {
         go = true;
-        
+
         //System.out.println("Connect");
         connect(portString);
-        
+
         String s;
-        
+
         //System.out.println("Waiting for data");
         while (((s = readProcessData()) != null) && (go == true)) {
             jta.append(s + "\n");
         }
-        
+
         //System.out.println("no more data : stopped");
         closeConnect();
         //System.out.println("Closed");
-        
+
     }
-    
+
     public void closeConnect() throws LauncherException {
         try {
             clientSocket.close();
@@ -269,13 +270,20 @@ public class RshClient {
             throw new LauncherException(SERV_NOT_RESP+host);
         }
     }
-    
+
     /* -- private -- */
-    
-    
-    
+
+
+
     private void send(String s) throws LauncherException {
-        //System.out.println("Sending: " + s);
+        TraceManager.addDev("Sending: " + s);
+
+	if (sk != null) {
+	    // cipher the information
+	    s = AESEncryptor.encrypt(sk, RshServer.iv, s);
+	    TraceManager.addDev("Ciphered message to server=" + s);
+	}
+
         try {
             out.println(s);
             out.flush();
@@ -283,7 +291,7 @@ public class RshClient {
             throw new LauncherException(IO_ERROR);
         }
     }
-    
+
     private void sendFileData(String data) throws LauncherException {
         //System.out.println("Sending data");
         StringReader sr = new StringReader(data);
@@ -297,26 +305,26 @@ public class RshClient {
             throw new  LauncherException(FILE_FAILED);
         }
     }
-    
+
     /*private boolean sendData(PrintStream out, FileInputStream fis) throws LauncherException {
-        System.out.println("Send data ");
-     
-        byte [] ba = new byte[BUFSIZE];
-        int nbRead;
-     
-        //StringReader sr = new StringReader(data);
-        //BufferedReader br = new BufferedReader(sr);
-        try {
-            while((nbRead = fis.read(ba)) > -1) {
-                respond(out, "8" + new String(ba, 0, nbRead));
-            }
-            fis.close();
-        } catch (Exception e) {
-            return false;
-        }
-        return true;
-    }*/
-    
+      System.out.println("Send data ");
+
+      byte [] ba = new byte[BUFSIZE];
+      int nbRead;
+
+      //StringReader sr = new StringReader(data);
+      //BufferedReader br = new BufferedReader(sr);
+      try {
+      while((nbRead = fis.read(ba)) > -1) {
+      respond(out, "8" + new String(ba, 0, nbRead));
+      }
+      fis.close();
+      } catch (Exception e) {
+      return false;
+      }
+      return true;
+      }*/
+
     public String readProcessData() throws LauncherException {
         int nb;
         String s = null;
@@ -326,26 +334,26 @@ public class RshClient {
         } catch(IOException io) {
             throw new LauncherException(IO_ERROR);
         }
-        
+
         if (nb == 5) {
             return null;
         }
-        
+
         s = s.substring(1, s.length());
         if (s == null) {
             s = "";
         }
-        
+
         return s;
     }
-    
+
     private String readDataUntilCompletion() throws LauncherException {
         int nb=0, nbTotal, cpt = 0;
         String s = null;
         StringBuffer ret = new StringBuffer();
         char []c = new char[BUFSIZE+1];
         int read;
-        
+
         try {
             //System.out.println("Reading first data ");
             s = in.readLine();
@@ -358,114 +366,115 @@ public class RshClient {
                     //System.out.println("Nb read: " + read + " size of s =" + s.length());
                     //nb = Integer.decode(s.substring(0,1)).intValue();
                     //ret.append(s.substring(0, s.length()));
-					ret.append(c, 0, read);
+                    ret.append(c, 0, read);
                     cpt += read;
                 }
                 // Read last info
-				//System.out.println("Reading last info");
-				nb = readReturn();
-				//System.out.println("Return = " + nb);
+                //System.out.println("Reading last info");
+                nb = readReturn();
+                //System.out.println("Return = " + nb);
                 //read = in.read(c, 0, 1);
-				//s = new String(c, 0, read);
+                //s = new String(c, 0, read);
                 //System.out.println("Last s=" + s + " read=" + read);
                 //nb = Integer.decode(s.substring(0,1)).intValue();
                 //System.out.println("Last info=" + nb);
-				//nb= 3;
+                //nb= 3;
             }
         } catch(IOException io) {
             throw new LauncherException(IO_ERROR);
         }
-        
+
         if (nb != 3) {
             throw new LauncherException(FILE_FAILED);
         }
-        
+
         return new String(ret);
     }
-    
+
     /*private String readDataUntilCompletionInfoLine() throws LauncherException {
-        int nb = 8;
-        String s = null;
-        StringBuffer ret = new StringBuffer();
-     
-     
-        try {
-            //System.out.println("Reading data");
-            while ((nb == 8) && ((s = in.readLine()) != null)) {
-                //System.out.println("read: " + s);
-                nb = Integer.decode(s.substring(0,1)).intValue();
-                if (nb == 8) {
-                    ret.append(s.substring(1, s.length()) + "\n");
-                }
-            }
-        } catch(IOException io) {
-            throw new LauncherException(IO_ERROR);
-        }
-     
-        if (nb != 3) {
-            throw new LauncherException(FILE_FAILED);
-        }
-     
-        return new String(ret);
-    }*/
-    
+      int nb = 8;
+      String s = null;
+      StringBuffer ret = new StringBuffer();
+
+
+      try {
+      //System.out.println("Reading data");
+      while ((nb == 8) && ((s = in.readLine()) != null)) {
+      //System.out.println("read: " + s);
+      nb = Integer.decode(s.substring(0,1)).intValue();
+      if (nb == 8) {
+      ret.append(s.substring(1, s.length()) + "\n");
+      }
+      }
+      } catch(IOException io) {
+      throw new LauncherException(IO_ERROR);
+      }
+
+      if (nb != 3) {
+      throw new LauncherException(FILE_FAILED);
+      }
+
+      return new String(ret);
+      }*/
+
     private int readReturn() throws LauncherException {
         int nb;
         String s = null;
-        
+
         try {
-			//System.out.println("Reading line");
-            s = in.readLine();        
-			//System.out.println("Line read");
-			//System.out.println("Converting nb s=>" + s + "<");
+            //System.out.println("Reading line");
+            s = in.readLine();
+	    TraceManager.addDev("Got from Server:" + s);
+            //System.out.println("Line read");
+            //System.out.println("Converting nb s=>" + s + "<");
             nb = Integer.decode(s.substring(0,1)).intValue();
-			//System.out.println("Nb = " + nb);
+            //System.out.println("Nb = " + nb);
         } catch(IOException io) {
-			System.out.println("Exception 0");
+            System.out.println("Exception 0");
             throw new LauncherException(IO_ERROR);
         }
-        
+
         if (nb != 3) {
-			System.out.println("Exception 1");
+            System.out.println("Exception 1");
             throw new LauncherException(FILE_FAILED);
         }
-		return nb;
+        return nb;
     }
-    
+
     private int readId() throws LauncherException {
         int nb;
         String s = null;
-        
+
         try {
             s = in.readLine();
             nb = Integer.decode(s.substring(0,1)).intValue();
         } catch(IOException io) {
             throw new LauncherException(IO_ERROR);
         }
-        
+
         if (nb == 0) {
             throw new LauncherException(ID_FAILED);
         }
-        
+
         return nb;
     }
-    
+
     private void readReturnPipedProcesses() throws LauncherException {
         int nb;
         String s = null;
-        
+
         try {
             s = in.readLine();
             nb = Integer.decode(s.substring(0,1)).intValue();
         } catch(IOException io) {
             throw new LauncherException(IO_ERROR);
         }
-        
+
         if (nb != 3) {
             throw new LauncherException(PROC_FAILED);
         }
     }
-    
+
     private int readPortString() throws LauncherException {
         int nb;
         String s = null;
@@ -475,11 +484,11 @@ public class RshClient {
         } catch(IOException io) {
             throw new LauncherException(IO_ERROR);
         }
-        
+
         if (nb == 2) {
             throw new LauncherException(PROC_FAILED);
         }
-        
+
         portString = -1;
         portString2 = -1;
         try {
@@ -487,35 +496,35 @@ public class RshClient {
         } catch (Exception e) {
             throw new LauncherException(IO_ERROR);
         }
-        
+
         if (portString <1) {
             throw new LauncherException(PROC_FAILED);
         }
-        
+
         return portString;
     }
-    
+
     private void connect(int portNet) throws LauncherException {
         InetAddress ina = null;
-        
+
         //System.out.println("Connecting on port " + portNet);
-        
+
         if (host == null) {
             throw new LauncherException(NO_HOST);
         }
-        
+
         try {
             ina = InetAddress.getByName(host);
         } catch (UnknownHostException e) {
             throw new LauncherException(INET + host);
         }
-        
+
         try {
             clientSocket = new Socket(ina, portNet);
         } catch (IOException io) {
             throw new LauncherException(SERV_NOT_RESP+host);
         }
-        
+
         try {
             in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
             //in2 = new DataInputStream(clientSocket.getInputStream());
@@ -525,33 +534,33 @@ public class RshClient {
             throw new LauncherException(SERV_NOT_RESP+host);
         }
     }
-    
+
     /*private void basicConnect() throws LauncherException {
-        InetAddress ina = null;
-        
-        if (host == null) {
-            throw new LauncherException(NO_HOST);
-        }
-        
-        try {
-            ina = InetAddress.getByName(host);
-        } catch (UnknownHostException e) {
-            throw new LauncherException(INET + host);
-        }
-        
-        try {
-            clientSocket = new Socket(ina, port);
-        } catch (IOException io) {
-            throw new LauncherException(SERV_NOT_RESP+host);
-        }
-        
-        try {
-            in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
-            //in2 = new DataInputStream(clientSocket.getInputStream());
-            out = new PrintStream(clientSocket.getOutputStream());
-        } catch (Exception e) {
-            throw new LauncherException(SERV_NOT_RESP+host);
-        }
-    }*/
-    
-}
\ No newline at end of file
+      InetAddress ina = null;
+
+      if (host == null) {
+      throw new LauncherException(NO_HOST);
+      }
+
+      try {
+      ina = InetAddress.getByName(host);
+      } catch (UnknownHostException e) {
+      throw new LauncherException(INET + host);
+      }
+
+      try {
+      clientSocket = new Socket(ina, port);
+      } catch (IOException io) {
+      throw new LauncherException(SERV_NOT_RESP+host);
+      }
+
+      try {
+      in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
+      //in2 = new DataInputStream(clientSocket.getInputStream());
+      out = new PrintStream(clientSocket.getOutputStream());
+      } catch (Exception e) {
+      throw new LauncherException(SERV_NOT_RESP+host);
+      }
+      }*/
+
+}
diff --git a/src/launcher/RshServer.java b/src/launcher/RshServer.java
index 564f7bacf7e6819a038dea1dfb652750b4d2c470..4e218917b9b5a2e03b92e15191d3e35c1235d29e 100755
--- a/src/launcher/RshServer.java
+++ b/src/launcher/RshServer.java
@@ -39,7 +39,7 @@
  * Class RshServer
  * For remote execution of processes
  * Creation: 2003
- * @version 1.1 01/12/2003
+ * @version 2 21/05/2015
  * @author Ludovic APVRILLE
  * @see
  */
@@ -52,12 +52,14 @@ import myutil.*;
 import java.io.*;
 import java.net.*;
 import java.util.*;
+import javax.crypto.*;
+import java.security.*;
 
 import myutil.*;
 
 public class RshServer {
-	public static int PORT_NUMBER = 8375;
-	
+    public static int PORT_NUMBER = 8375;
+
     private int port = PORT_NUMBER;
     private ServerSocket server = null;
     private int id = 0;
@@ -66,40 +68,69 @@ public class RshServer {
     public static final String VERSION = "0.61";
     private int BUFSIZE = 511;
     private boolean []sessions = new boolean[10]; // 0 is never used.
-	
-	private static int MAX_NB_TRY = 25;
-	private int nbTry = 0;
+
+    private static int MAX_NB_TRY = 25;
+    private int nbTry = 0;
+
+    private boolean isSecure = true;
+    private String sk;
+    public static String iv = "Wh4t4b0utThisKe?";
 
     public RshServer() {
-		TraceManager.addDev("Using port: " + port);
+        TraceManager.addDev("Using port: " + port);
         processes = new Vector();
         try {
             server = new ServerSocket(port);
         } catch (Exception e) {
             System.out.println("Server could not start(Socket pb)");
-        }
+        }		
     }
+
+    public RshServer(String _sk) {
+        TraceManager.addDev("Using port: " + port);
+	sk = _sk;
+        processes = new Vector();
+        try {
+            server = new ServerSocket(port);
+        } catch (Exception e) {
+            System.out.println("Server could not start(Socket pb)");
+        }		
+    }
+
     
+
+    public void setNonSecure() {
+        isSecure = false;
+    }
+
+    public String getSecretKey() {
+	return sk;
+    }
+
+    public String getIV() {
+	return iv;
+    }
+
     private void printProcessRunning() {
         System.out.println("Process running:" + processes.size());
     }
-    
-    
+
+
     // Returns 0 if no session id could be found;
     private synchronized int getSessionId() {
-      for(int i=1; i<10; i++) {
-        if (!sessions[i]) {
-          sessions[i] = true;
-          return i;
+        for(int i=1; i<10; i++) {
+            if (!sessions[i]) {
+                sessions[i] = true;
+                return i;
+            }
         }
-      }
-      return 0;
+        return 0;
     }
-    
+
     private synchronized void freeSessionId(int id) {
-      if ((id > 0) && (id<10)) {
-        sessions[id] = false;
-      }
+        if ((id > 0) && (id<10)) {
+            sessions[id] = false;
+        }
     }
 
     private Socket waitForClient() {
@@ -108,12 +139,12 @@ public class RshServer {
         try {
             s = server.accept();
         } catch (Exception e) {
-			nbTry ++;
+            nbTry ++;
             return null;
         }
         return s;
     }
-    
+
     private void respond(PrintStream out, String s) {
         try {
             out.println(s);
@@ -121,7 +152,7 @@ public class RshServer {
         } catch (Exception e) {
         }
     }
-    
+
     private void respondNoln(PrintStream out, String s) {
         //System.out.println("Sending: " + s);
         try {
@@ -130,42 +161,42 @@ public class RshServer {
         } catch (Exception e) {
         }
     }
-    
+
     private int startNewProcess(String path) {
         if (processes.size() >= MAX_PROC) {
             return -1;
         }
-        
+
         ExecutionThread et = new ExecutionThread(path, port, this);
-        
+
         if (et.getPort() == -1) {
             return -1;
         }
-        
+
         processes.addElement(et);
-        
+
         et.start();
-        
+
         return et.getPort();
-        
+
     }
-    
+
     private int createNewProcess(String path) {
         if (processes.size() >= MAX_PROC) {
             return -1;
         }
-        
+
         ExecutionThread et = new ExecutionThread(path, port, this);
-        
+
         if (et.getPort() == -1) {
             return -1;
         }
-        
+
         processes.addElement(et);
-        
+
         return et.getPort();
     }
-    
+
     private boolean startProcess(String idp) {
         int id = 0;
         try {
@@ -173,10 +204,10 @@ public class RshServer {
         } catch (Exception e) {
             return false;
         }
-        
+
         return startProcess(id);
     }
-    
+
     private boolean startProcess(int id) {
         ExecutionThread et;
         for(int i=0; i<processes.size(); i++) {
@@ -191,7 +222,7 @@ public class RshServer {
         }
         return false;
     }
-    
+
     private ExecutionThread getExecutionThread(int id) {
         ExecutionThread et;
         for(int i=0; i<processes.size(); i++) {
@@ -202,7 +233,7 @@ public class RshServer {
         }
         return null;
     }
-    
+
     private boolean pipeProcesses(String str1, String str2) {
         int id1 =0, id2 = 0;
         //System.out.println("Toto1");
@@ -219,25 +250,25 @@ public class RshServer {
         //System.out.println("Toto3");
         ExecutionThread et1 = getExecutionThread(id1);
         ExecutionThread et2 = getExecutionThread(id2);
-        
+
         //System.out.println("Toto4");
-        
+
         if ((et1 == null) || (et2 == null)) {
             return false;
         }
         //System.out.println("Toto5");
-        
+
         et1.setWaitForPipe();
         et2.setPiped(et1);
-        
+
         return true;
     }
-    
+
     public void removeProcess(ExecutionThread et) {
         processes.removeElement(et);
         printProcessRunning();
     }
-    
+
     public void killProcess(int id) {
         ExecutionThread et;
         for(int i=0; i<processes.size(); i++) {
@@ -251,7 +282,7 @@ public class RshServer {
         }
         printProcessRunning();
     }
-    
+
     public void killAllProcesses() {
         ExecutionThread et;
         for(int i=0; i<processes.size(); i++) {
@@ -262,136 +293,147 @@ public class RshServer {
         }
         printProcessRunning();
     }
-    
+
     private void manageClientRequest(Socket s) {
         String info = null;
 
         BufferedReader in;
         PrintStream out;
-        
+
         try {
             in = new BufferedReader(new InputStreamReader(s.getInputStream()));
             out = new PrintStream(s.getOutputStream(), true);
         } catch (Exception e) {
             return;
         }
-        
+
         try {
             info = in.readLine();
         } catch (Exception e) {
+	    TraceManager.addDev("Exception when reading client information=" + info);
             return;
         }
-        
-        if (info.substring(0, 1).equals("0")) { // Session id
-           if (info.substring(1, 2).equals("0")) { // Get session id
-              int id = getSessionId();
-              System.out.println("-> New session id = " + id);
-              respond(out, ""+id); // A zero response means error
-           } else {
-             try {
-                 int id = Integer.decode(info.substring(1, 2)).intValue();
-                 freeSessionId(id);
-                 System.out.println("-> Session id=" + id + " terminated");
-                 respond(out, ""+id);
-             } catch (Exception e) {
-               respond(out, "0");
-             }
-           }
-        } else if (info.substring(0, 1).equals("1")) {
-            // start process at once
-            int id = startNewProcess(info.substring(1, info.length()));
-            if (id <0) {
-                respond(out, "2");	 // fail
-            } else {
-                System.out.println("Process accepted on port " + id);
-                respond(out, "3" + id);	// process created
-            }
-        } else if (info.substring(0, 1).equals("2")) {
-            // Piped processes
-            System.out.println("Piped processes");
-            String str = info.substring(1, info.length());
-            String str1, str2;
-            int index = str.indexOf(' ');
-            System.out.println("index = " + index);
-            if (index > 0) {
-                str1 = str.substring(0, index);
-                str2 = str.substring(index + 1, str.length());
-                System.out.println("str = " + str + " str1 = *" + str1 + "* str2 = *" + str2 + "*");
-                if (pipeProcesses(str1, str2)) {
-                    System.out.println("Making piped processes");
-                    respond(out, "3");	 // OK
+
+        if (sk != null) {
+            info = checkSecurity(info);
+	    
+        }
+
+	TraceManager.addDev("Got from client:" + info);
+
+        if (info != null) {
+
+            if (info.substring(0, 1).equals("0")) { // Session id
+                if (info.substring(1, 2).equals("0")) { // Get session id
+                    int id = getSessionId();
+                    System.out.println("-> New session id = " + id);
+                    respond(out, ""+id); // A zero response means error
+                } else {
+                    try {
+                        int id = Integer.decode(info.substring(1, 2)).intValue();
+                        freeSessionId(id);
+                        System.out.println("-> Session id=" + id + " terminated");
+                        respond(out, ""+id);
+                    } catch (Exception e) {
+                        respond(out, "0");
+                    }
+                }
+            } else if (info.substring(0, 1).equals("1")) {
+                // start process at once
+                int id = startNewProcess(info.substring(1, info.length()));
+                if (id <0) {
+                    respond(out, "2");       // fail
                 } else {
+                    System.out.println("Process accepted on port " + id);
+                    respond(out, "3" + id); // process created
+                }
+            } else if (info.substring(0, 1).equals("2")) {
+                // Piped processes
+                System.out.println("Piped processes");
+                String str = info.substring(1, info.length());
+                String str1, str2;
+                int index = str.indexOf(' ');
+                System.out.println("index = " + index);
+                if (index > 0) {
+                    str1 = str.substring(0, index);
+                    str2 = str.substring(index + 1, str.length());
+                    System.out.println("str = " + str + " str1 = *" + str1 + "* str2 = *" + str2 + "*");
+                    if (pipeProcesses(str1, str2)) {
+                        System.out.println("Making piped processes");
+                        respond(out, "3");   // OK
+                    } else {
+                        System.out.println("Making piped processes FAILED");
+                        respond(out, "2");   // fail
+                    }
+                }  else {
                     System.out.println("Making piped processes FAILED");
-                    respond(out, "2");	 // fail
+                    respond(out, "2");       // fail
                 }
-            }  else {
-                System.out.println("Making piped processes FAILED");
-                respond(out, "2");	 // fail
-            }
-            
-        } else if (info.substring(0, 1).equals("3")) {
-            // create process
-            int id = createNewProcess(info.substring(1, info.length()));
-            if (id <0) {
-                respond(out, "2");	 // fail
-            } else {
-                System.out.println("Process accepted on port " + id);
-                respond(out, "3" + id);	// process created
-            }
-        } else if (info.substring(0, 1).equals("4")) {
-            // start already created process
-            if (startProcess(info.substring(1, info.length()))) {
-                System.out.println("Process started on port " + id);
-                respond(out, "3" + id);	// process created
+
+            } else if (info.substring(0, 1).equals("3")) {
+                // create process
+                int id = createNewProcess(info.substring(1, info.length()));
+                if (id <0) {
+                    respond(out, "2");       // fail
+                } else {
+                    System.out.println("Process accepted on port " + id);
+                    respond(out, "3" + id); // process created
+                }
+            } else if (info.substring(0, 1).equals("4")) {
+                // start already created process
+                if (startProcess(info.substring(1, info.length()))) {
+                    System.out.println("Process started on port " + id);
+                    respond(out, "3" + id); // process created
+                } else {
+                    respond(out, "2");       // fail
+                }
+            } else if (info.substring(0, 1).equals("5")) {
+                // kill all processes
+                try {
+                    killAllProcesses();
+                } catch (Exception e) {
+
+                }
+            }else if (info.substring(0, 1).equals("6")) {
+                // kill process
+                try {
+                    int id = Integer.decode(info.substring(1, info.length())).intValue();
+                    System.out.println("Demand to kill: " + id);
+                    killProcess(id);
+                } catch (Exception e) {
+
+                }
+            } else if (info.substring(0, 1).equals("7")) {
+                //file : put
+                String fileName = info.substring(1, info.length());
+                makeFileFromData(in, out, fileName);
+            } else if (info.substring(0, 1).equals("8")) {
+                //file : get
+                String fileName = info.substring(1, info.length());
+                sendDataFile(in, out, fileName);
+            } else if (info.substring(0, 1).equals("9")) {
+                //file : delete
+                String fileName = info.substring(1, info.length());
+                deleteFile(in, out, fileName);
             } else {
-                respond(out, "2");	 // fail
-            }
-        } else if (info.substring(0, 1).equals("5")) {
-            // kill all processes
-            try {
-                killAllProcesses();
-            } catch (Exception e) {
-                
+                System.exit(0);
             }
-        }else if (info.substring(0, 1).equals("6")) {
-            // kill process
-            try {
-                int id = Integer.decode(info.substring(1, info.length())).intValue();
-                System.out.println("Demand to kill: " + id);
-                killProcess(id);
-            } catch (Exception e) {
-                
-            }
-        } else if (info.substring(0, 1).equals("7")) {
-            //file : put
-            String fileName = info.substring(1, info.length());
-            makeFileFromData(in, out, fileName);
-        } else if (info.substring(0, 1).equals("8")) {
-            //file : get
-            String fileName = info.substring(1, info.length());
-            sendDataFile(in, out, fileName);
-        } else if (info.substring(0, 1).equals("9")) {
-            //file : delete
-            String fileName = info.substring(1, info.length());
-            deleteFile(in, out, fileName);
-        } else {
-            System.exit(0);
         }
     }
-    
+
     private void makeFileFromData(BufferedReader in, PrintStream out, String fileName) {
-        System.out.println("Making file " + fileName);
+        TraceManager.addDev("Making file " + fileName);
         File file = new File(fileName);
-        
+
         if (!isFileOkForSave(file)) {
             System.out.println("Cannot make file");
-            respond(out, "2");	 // fail
+            respond(out, "2");   // fail
             return;
         }
-        
+
         StringBuffer fileData = new StringBuffer();
         String info;
-        
+
         System.out.println("Waiting for file data");
         while(true) {
             try {
@@ -399,20 +441,24 @@ public class RshServer {
             } catch (Exception e) {
                 return;
             }
-            
+
+	    if (sk != null) {
+		info = checkSecurity(info);
+	    }
+
             if ((info == null) || (info.length() == 0)) {
-              // Assumes it is an EOF
-              System.out.println("Wrong EOF -> assumes it is an EOF");
+                // Assumes it is an EOF
+                System.out.println("Wrong EOF -> assumes it is an EOF");
                 try {
                     FileOutputStream fos = new FileOutputStream(file);
                     fos.write((new String(fileData)).getBytes());
                     fos.close();
                 } catch (Exception e) {
                     System.out.println("Error when feeding file");
-                    respond(out, "2");	 // fail
+                    respond(out, "2");   // fail
                     return;
                 }
-                respond(out, "3");	// file created
+                respond(out, "3");      // file created
                 return;
 
             } else if (info.substring(0, 1).equals("8")) {
@@ -427,87 +473,87 @@ public class RshServer {
                     fos.close();
                 } catch (Exception e) {
                     System.out.println("Error when feeding file");
-                    respond(out, "2");	 // fail
+                    respond(out, "2");   // fail
                     return;
                 }
-                respond(out, "3");	// file created
+                respond(out, "3");      // file created
                 return;
             } else {
-                System.out.println("Unknown PDU (file)");
-                respond(out, "2");	 // fail
+                System.out.println("Unknown PDU (file)=" + info);
+                respond(out, "2");       // fail
                 return;
             }
         }
     }
-    
+
     private void sendDataFile(BufferedReader in, PrintStream out, String fileName) {
         System.out.println("Sending data of file " + fileName);
         File file = new File(fileName);
-        
+
         if (!isFileOkForRead(file)) {
             //System.out.println("Cannot read file");
-            respond(out, "2");	 // fail
+            respond(out, "2");   // fail
             return;
         }
-        
+
         try {
             FileInputStream fis = new FileInputStream(file);
             /*int nb = fis.available();
-             
-            System.out.println("New byte " + fileName);
-            byte [] ba = new byte[nb];
-            fis.read(ba);
-            System.out.println("Reading " + fileName);
-            fis.close();*/
+
+              System.out.println("New byte " + fileName);
+              byte [] ba = new byte[nb];
+              fis.read(ba);
+              System.out.println("Reading " + fileName);
+              fis.close();*/
             if (sendData(out, fis)) {
-				//System.out.println("Sending 3 info to say OK");
+                //System.out.println("Sending 3 info to say OK");
                 respond(out, "3");
             } else {
                 System.out.println("Sending failed");
                 respond(out, "2");
             }
         } catch(Exception e) {
-            respond(out, "2");	 // fail
+            respond(out, "2");   // fail
             return;
         }
         System.out.println("Sending completed");
     }
-    
+
     private void deleteFile(BufferedReader in, PrintStream out, String fileName) {
         System.out.println("Deleting " + fileName);
         File file = new File(fileName);
-        
+
         try {
             file.delete();
         } catch(Exception e) {
-            respond(out, "2");	 // fail
+            respond(out, "2");   // fail
             return;
         }
         respond(out, "3");
     }
-    
+
     public void startServer() {
         Socket s = null;
-        
-        
+
+
         while(nbTry < MAX_NB_TRY) {
             // Wait for client request
             printProcessRunning();
-            
+
             s = waitForClient();
-            
+
             if (s != null) {
                 manageClientRequest(s);
             }
-            
+
         }
     }
-    
+
     private boolean isFileOkForRead(File file) {
         if (file == null) {
             return false;
         }
-        
+
         try {
             if (!file.exists()) {
                 return false;
@@ -521,13 +567,13 @@ public class RshServer {
         }
         return true;
     }
-    
+
     private boolean isFileOkForSave(File file) {
-        
+
         if (file == null) {
             return false;
         }
-        
+
         try {
             if (!file.exists()) {
                 if (!file.createNewFile()) {
@@ -543,34 +589,51 @@ public class RshServer {
             System.out.println("Exception file " + e.getMessage());
             return false;
         }
-        
+
         return true;
     }
-    
+
     private boolean sendData(PrintStream out, FileInputStream fis) throws LauncherException {
         System.out.println("Send data ");
-        
+
         byte [] ba = new byte[BUFSIZE];
-        int nbRead; 
-        
+        int nbRead;
+
         //StringReader sr = new StringReader(data);
         //BufferedReader br = new BufferedReader(sr);
         try {
             // Sending first line : 8 + nbByte
             respond(out, new String("8" + fis.available()));
-			int cpt = 0;
-            
+            int cpt = 0;
+
             while((nbRead = fis.read(ba, 0, BUFSIZE)) > -1) {
                 //respondNoln(out, new String(ba, 0, nbRead));
-				out.write(ba, 0, nbRead);
-				cpt += nbRead;
+                out.write(ba, 0, nbRead);
+                cpt += nbRead;
             }
-			System.out.println("Nb written:" + cpt);
+            System.out.println("Nb written:" + cpt);
             fis.close();
         } catch (Exception e) {
-			System.out.println("Exception when sending file: " + e.getMessage());
+            System.out.println("Exception when sending file: " + e.getMessage());
             return false;
         }
         return true;
     }
+
+    private String checkSecurity(String _ciphered) {
+	if (!isSecure) {
+	    return _ciphered; // The string is in fact not ciphered
+	}
+
+	if (sk == null) {
+	    return null;
+	}
+
+	String deciphered = AESEncryptor.decrypt(sk, iv, _ciphered);
+
+	TraceManager.addDev("Deciphered=" + deciphered);
+	return deciphered;
+	
+
+    }
 }
diff --git a/src/myutil/AESEncryptor.java b/src/myutil/AESEncryptor.java
new file mode 100644
index 0000000000000000000000000000000000000000..ead2c2073041d8c62b7c29b1bd673754baaba4fa
--- /dev/null
+++ b/src/myutil/AESEncryptor.java
@@ -0,0 +1,100 @@
+/**Copyright or (C) or Copr. GET / ENST, Telecom-Paris, Ludovic Apvrille
+ *
+ * ludovic.apvrille AT enst.fr
+ *
+ * This software is a computer program whose purpose is to allow the
+ * edition of TURTLE analysis, design and deployment diagrams, to
+ * allow the generation of RT-LOTOS or Java code from this diagram,
+ * and at last to allow the analysis of formal validation traces
+ * obtained from external tools, e.g. RTL from LAAS-CNRS and CADP
+ * from INRIA Rhone-Alpes.
+ *
+ * This software is governed by the CeCILL  license under French law and
+ * abiding by the rules of distribution of free software.  You can  use,
+ * modify and/ or redistribute the software under the terms of the CeCILL
+ * license as circulated by CEA, CNRS and INRIA at the following URL
+ * "http://www.cecill.info".
+ *
+ * As a counterpart to the access to the source code and  rights to copy,
+ * modify and redistribute granted by the license, users are provided only
+ * with a limited warranty  and the software's author,  the holder of the
+ * economic rights,  and the successive licensors  have only  limited
+ * liability.
+ *
+ * In this respect, the user's attention is drawn to the risks associated
+ * with loading,  using,  modifying and/or developing or reproducing the
+ * software by the user in light of its specific status of free software,
+ * that may mean  that it is complicated to manipulate,  and  that  also
+ * therefore means  that it is reserved for developers  and  experienced
+ * professionals having in-depth computer knowledge. Users are therefore
+ * encouraged to load and test the software's suitability as regards their
+ * requirements in conditions enabling the security of their systems and/or
+ * data to be ensured and,  more generally, to use and operate it in the
+ * same conditions as regards security.
+ *
+ * The fact that you are presently reading this means that you have had
+ * knowledge of the CeCILL license and that you accept its terms.
+ *
+ * Code taken initially taken from stack overflow
+ *
+ * /**
+ * Class AESEncryptor
+ * For remote execution of processes
+ * Creation: 2015
+ * @version 1 21/05/2015
+ * @author Ludovic APVRILLE
+ * @see
+ */
+
+     package myutil;
+
+import javax.crypto.Cipher;
+import javax.crypto.spec.IvParameterSpec;
+import javax.crypto.spec.SecretKeySpec;
+
+import org.apache.commons.codec.binary.Base64;
+
+public class AESEncryptor {
+    public static String encrypt(String key1, String key2, String value) {
+        try {
+            IvParameterSpec iv = new IvParameterSpec(key2.getBytes("UTF-8"));
+
+            SecretKeySpec skeySpec = new SecretKeySpec(key1.getBytes("UTF-8"),
+                    "AES");
+            Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING");
+            cipher.init(Cipher.ENCRYPT_MODE, skeySpec, iv);
+            byte[] encrypted = cipher.doFinal(value.getBytes());
+            /*System.out.println("encrypted string:"
+	      + Base64.encodeBase64String(encrypted));*/
+            return Base64.encodeBase64String(encrypted);
+        } catch (Exception ex) {
+            ex.printStackTrace();
+        }
+        return null;
+    }
+
+    public static String decrypt(String key1, String key2, String encrypted) {
+        try {
+            IvParameterSpec iv = new IvParameterSpec(key2.getBytes("UTF-8"));
+
+            SecretKeySpec skeySpec = new SecretKeySpec(key1.getBytes("UTF-8"),
+                    "AES");
+            Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING");
+            cipher.init(Cipher.DECRYPT_MODE, skeySpec, iv);
+            byte[] original = cipher.doFinal(Base64.decodeBase64(encrypted));
+
+            return new String(original);
+        } catch (Exception ex) {
+            ex.printStackTrace();
+        }
+        return null;
+    }
+
+    public static void main(String[] args) {
+
+        String key1 = "Bar12345Bar12345"; // 128 bit key
+        String key2 = "ThisIsASecretKet";
+        System.out.println(decrypt(key1, key2,
+                encrypt(key1, key2, "Hello World")));
+    }
+}
diff --git a/src/ttool.txt b/src/ttool.txt
index 0c2261a68761d6b4acf8634b54b88960a796b100..81ad2bb79107ba624c442db3e50c95353eee6eb4 100755
--- a/src/ttool.txt
+++ b/src/ttool.txt
@@ -1,2 +1,2 @@
 Main-Class: Main
-Class-Path: ./jsoup-1.8.1.jar 
+Class-Path: ./jsoup-1.8.1.jar ./commons-codec-1.10.jar
diff --git a/src/ui/MainGUI.java b/src/ui/MainGUI.java
index 12d91e9a4b90f26a68c8dc4e895c9f58956ca485..52ebf50534721ea5cff53551831dbf55a951a511 100755
--- a/src/ui/MainGUI.java
+++ b/src/ui/MainGUI.java
@@ -148,6 +148,8 @@ public  class MainGUI implements ActionListener, WindowListener, KeyListener, Pe
     //Menubar
     private JMenuBarTurtle jmenubarturtle;
 
+    // Communication key
+    private String sk;
 
 
     // Annex windows
@@ -313,6 +315,14 @@ public  class MainGUI implements ActionListener, WindowListener, KeyListener, Pe
 
     }
 
+    public void setKey(String _sk) {
+	sk = _sk;
+	RshClient.sk = sk;
+    }
+
+    public String getKey() {
+	return sk;
+    }
 
 
     public boolean isAvatarOn() {