A Finite State Machine framework.