Added find all repeats function