Converted to foreach

Version 2.4.0.2