They were strongly challenged from the Tang dynasty by a new version influenced by Taoism, which adopted Yanluo Wang to make it the fifth of a set of ten kings (Shidian Yánluó wáng 十殿閻羅王, Guardian king-sorter of the ten chambers) each named at the head of a hell by the Jade Emperor.