FSM (was dysfunctional function)

...So why haven't you fixed the indenting?