Repositioned dmg variable