Added code to classes that are associated with the thread controller classes.