Better iteration number generation...