A few minor tweaks to the mac script