Added the ability to define maximum display depth