Fixed Lasses code for MLDist. Untested!