Adding ensure_packages