Made the installer function better