Added check for case of link name not existing.