Minor modifications for threading interface

Working towards smarter threading processing.