Update Thread.class.php