The variable `_ids` seems to be unused in this code.