fsm-to-fsm funcs.
Added some message handling.