Fixed the hack for getting iterations.