Updated min script