Add Thread class.