Removed BOOST_FOREACH in favor of range-for