Use set for collecting entities.