Cleaning up pkgmgr.
Cleaned up pkgmgr.