Many improvements to DM stuff.