Refactored thread model to make some methods private.