Fred: Added support for distance units