Takes care to ignore extra packages.