Very slow to generate all differences