Added the ability to define maximum display depth

Added an additional setting to allow the user to define the maximum depth the navigation will display.