Modify link_helper.
Added commented out code from other versions.