Fixed a memory leak and removed all extra output from package lists.