Use sub states and transitions.