Update ts3.class.php