Copied install script from Saagar