Some final improvements to mint script