Rethinked and reworked DUAL FSM. It should be simplified and easier to
modify. Prepared for future protocol independence.