Update Thread.php