Added ensure resource call for packages