Add mdapt (dithering) - courtesy of Sp00kyfox