Add ids to criteria filtering entries.