Added method to shorten url.