Delete debug statements and commented out getThreads caching.