Make tokens depend on current state.