Changed suretoinstall and suretopurge functionalities.