Switch state machine to functor front-end; works without crashing now.