More changes to dmg script.