Figure 1: Integrating FSMs into applications.