Added shortest repetition