Corrected iteration problem AT LAST.