Update Thread.php

It's usable from the webserver.