New thread viewer code