Eliminate repetitions