Also if the offence was going to be a red card for denying an obvious goalscoring opportunity, but the opposition take a quick free-kick, then the player will only be booked because the other team are considered to have restarted their attack.
How will they know what card the ref was going to...