Made repetition detection simpler.