Add minimum size checking for dms