Added thread to publish torques in ports.