Finished building State Machine.