I don't think you need var ttr/var tube. Could you use rule.Tube and rule.TTR in place of ttr/tube?