Update TRD code from C.Blume