Added link shortening functionality