Refactor repeat method
Refactor to be less convoluted
Refactor of repeat to reduce number of steps