Problem of queue full
When there is a thread which can change the current mode, it has a output port taking events to know when this switch is triggered. The problem is that this output port is never used somewhere else, and the events' queue is quickly full.
Maybe the planned thread and/or the emergency thread need to have a Receive_Input call to free space in the queue ?