Add support for unlimited levels of subpages