Changed to using boost::map_values for iteration.