Added TM debug