Preparation work for previous and next links.