Removed useless for loops.