State Machines completed