Made huge improvements to 'mash.sh'