Use ids to identify units.