Added some more logic into the instal script, but it is still far from ready...