Added removePackage function