Add (commented) code for DT code calculations