Adding determine_packages