Fixed bug with storing iterations on the server.