For loop is better to be replaced with foreach.
Inspired by
"Roodi"