Update the 'make_links' to make it more flexible to use the output.