Cleaned up package-archives var. Removed unused code.