Adjusted the way the repos are dealt with