Added Thread class.