Test state machine for following control transfers.
Prototyping to understand the mechanisms required for the state
machine, and will eventually turn things into a nicer system.