Optimizing install script