Removed unused getLink function