Refined script to get it run to the end after repo changes.