MOre refactoring for listing of threads.