Neatening up repos scripting