Working hierarchy generator (Sahh only)