Switch to state framework.