Corrected issue with thread support.