Enable custom classes to override the default threading behavior.