State machine updated