Finite State Machine update