Initial version of hiera_resources function