Added thread class.