You can declare a global array of vars and pass just the index of the needed series in that array to the tmf.