Moved link_names to a different place. Added additional line of logging.