Updating cookbook helper to get metadata