Add trace file transmission function