Changed logic to create link.