Bad for loop corrected.