Update state variables in UMAT

Hi,

 

I want to update a state variable in UMAT, and I notice that UMAT will be called for each material point at each iteration of each time increment. So generally it will be called multiple times for one time increment with stresses and strains iterated towards convergence and even if there is only one iteration, it will be called twice, one for the iteration and the other one at the end of this increment. However, I would like to use the stress and strain components only at the end of the current time increment to update the state variable and I am wondering whether there is a way to check whether the current call of UMAT is the last one or not for the current increment. Thanks a lot!