CheckPrecedingStates replaced.