http://www.paterva.com/web6/documentation/developer-tds.php#3