Added ability to limit the depth of the page links