State machine running