Update renumbering scripts to deal with more that 2 domains