Made send_TM modular