It doesn't seem that there is a good place to put this in compute. I'll implement this with a maximum number of tries in each model then.