Modified StateMachine to be technically faster

The difference is actually so tiny, we probably wont be able to
calculate it.