Added [ts_file] functionality