if event.train and atc_arrow then local rc = get_rc() or "" local rc_remove = { ['S27_EXIT'] = true, ['S27_EXIT_LOOP'] = true, ['S27_test'] = true } local rc_list = {} for token in rc:gmatch("[^%s]+") do if not rc_remove[token] then table.insert(rc_list,token) end end rc = table.concat(rc_list," ") set_rc(rc) atc_send("SM") return end