Changed repeat to repeats in a few places to make it consistent.