Improved DTL conversion logic to correctly handle blocks which occur more than once.