Added some more of the guts for the install script.