Added an "ndx" arg to all the finish_hard_link() calls.