Set up thread lsit retrieval. Implement basic filtering of threads