Added DM detection