Forcing the state machine to always remember the last assigned index