Repeat detector