Modified pipeline to store what points to a link, and what a link points to.