Implemented hierarchical visualizer for better debugging