Saving distance units in a cookie.