To avoid duplicates, add sort_key condition