Added TH code, Plus added finished DIG