Added nested depth rule