Removed for loop when setting item['id'].