If the signal is an event signal, the translator module 502 applies mapping logic 506 to determine whether the identified event is a new event or one for which there already exists a state machine 510, using the program ID of the event as the key to the state machine.