Fixed number of rounds done and final update. NOW IT WORKS.
Minor nits.