Add logic to shorten url.