State machine finished and tested.