Working version of install script