static is evil. Automaton works now.

Change-Id: Ib27c04d58f7cf99a9984af6eb20b0b4bf1ad7042