Last change caused infinite loops because of missing loop increment.