Added logic to compress the urls using the expansion codes.