Fixed statemachine example.