Update fsm.c