Added basis for getThreadList function. Function is not yet fully functional.