what is TMG used for