Hierarchy planning