Merged the URL shortener into the code