Change get_repeats to advanced function category