Switch to built-in gen_fsm behavior