Updated DMD code so it won't crash if there's no DMD