Add gates that depend on named entities.