Second part of tes conversion.