Change ensure_packages() -> ensure_resource()