Don't use a global variable in PackageParse(), it seems not needed.