Improved the tsdfinder program