Add categories' tree querying.