Use elementary control task, finite state machine and loop, inhibit, synchronisation connections