Changed to use only one sensitivity list for the state processing.
Got rid of the blocking assignment of state.
Made the command definitions more consistently named.
Consolidated to one single state machine.