Moved archive creation to PackageManager class.