Reduced the amount of state copied that are required by N calls by doing a balance check prior to any state modifications.