Make iteration numbers consistent with web interface (fixes #5)