Made the repo update algorithms.