Implementation of the shortening service