The gamelog code needs to use this logic too.