Fix tree generation
Option to disable links