Added code for outputting to coarse.links.count.index