Do you need to add in this in here in each loop?  Can't you just add in trk->ops at the start instead? (Or as a debugging statement you could do both and assert they're the same maybe?)