[+FEAT] Simplified pages query and honor maximum depth of pages