Added thread classes.