Write a sequential links renumbering function before I go bonkers.