Use ids instead of local_ids.